Skip to content

How are sensor names mapped from modbus.yaml to config.yaml? #20

Answered by Daibutt
slee77 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@slee77
Comment options

@StealthChesnut
Comment options

Answer selected by williamjeccles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants