-
As per the title really. I'm looking to tinker with what is possible with the sensor data from my FoxEss inverter. I am unclear as to how the sensor names are converted from being space or hyphen separated to being snake case in the config YAML? For example: I'm not sure if I'm missing a step in the translation between sensor data and config, or whether the translation is implicit in Python or whatever languague this is using under the hood? Thanks for any pointers you can throw my way! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
AFAIK it's all implicit within HA. In modbus.yaml there is a sensors section, and each sensor has a name. HA creates a sensor in the format "sensor.name". |
Beta Was this translation helpful? Give feedback.
AFAIK it's all implicit within HA. In modbus.yaml there is a sensors section, and each sensor has a name. HA creates a sensor in the format "sensor.name".
I'm guessing the underlying code/language isn't keen on spaces, -, or mixed case so a sensor name of "My Best Sensor" creates the sensor "sensor.my_best_sensor".
This isn't unique to this integration, it's just a HA thing, or at least that's my understanding.