Components

CompositeMeterItem

<CompositeMeterItem energyUrl powerUrl temperatureUrl switchUrl />

Constructor

# <CompositeMeterItem energyUrl powerUrl temperatureUrl switchUrl />

This component is just a container used to hold any CompositeMeter sensor item. It is responsible for making periodic calls to fetch the current value of the sensor to be displayed in the dashboard. It relies on useInterval and useMultipleFetch hooks.

PropTypes:
Name Type Required Description Default
energyUrl string Yes The endpoint to fetch the current energy value from.
powerUrl string Yes The endpoint to fetch the current power value from.
temperatureUrl string Yes The endpoint to fetch the current temperature value from.
switchUrl string Yes The endpoint to fetch the current switch state from.

View Source components/dashboard/CompositeMeterItem.jsx, line 19

<CompositeMeterItem />