Hi. I have a fire alarm / security sensors controller with modbus interface. I tried to add all fire / motion / door sensors to hass but have some troubles:
- Every sensor (addressed by zone id) has a state (normal, armed, disarmed, broken, lost, alarm, fire, dusted, etc) and a value. To get state I just read modbus register, but to read value a should execute a two step operation - write address and then read value. I just can’t figure out how to do this in home assistant
- All sensors has common state codes (a list of possible hundred values!). Is there any way to define these codes (and human readable names) in single place to use by all sensors?