Open ayourk opened 1 year ago
Another improvement to this would to also be able to support injecting env like home assistant supports. e.g.
- id: !env_var METER_ID
protocol: r900
name: meter_water
format: "#######.#"
unit_of_measurement: gal
icon: mdi:water
device_class: water
state_class: total_increasing
filters:
- multiply: 0.1
Either of these methods for pulling Meter IDs out of the primary config would work for me.
Please note: If you want to add Gas or Water to the Energy Dashboard, you MUST change the units to m³. Once added to the energy dashboard, the units can be changed back.
Can you elaborate on this one? I've been wondering why my water units aren't showing up in the Energy Dashboard - they are currently in ft³. Something like this?
Here is a link to the start of the conversation where I started getting the Gas section nailed down in the Home Assistant Discord, #energy channel: https://discord.com/channels/330944238910963714/872496321574088765/1041881869958004837
It would be great to be able to do something like the following in secrets,yaml and then use that in the config to hide the meter IDs in the main config.
--- secrets.yaml --- meter_elec: 10528282 meter_gas: 52212210 meter_water: 3223125100
The numbers above are random numbers I created in the moment and are not reflective of an exact meter ID; they are used as examples only.
Please note: If you want to add Gas or Water to the Energy Dashboard, you MUST change the units to m³. Once added to the energy dashboard, the units can be changed back.