Constructor
# <EnergyMeterItem url />
This component is just a container used to hold any EnergyMeter 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 useFetch hooks.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
url |
string | Yes | The endpoint to fetch the current value from. |