You should use the “value” field instead of raw one. Indeed the raw can vary for one device. Value should not. The counter part is that you are not able to distinguish the on and off signal of your rf outlet.
Yes, but even then I don’t get any automations triggers.
I see the mqtt messages arriving in the log
2019-07-06 11:28:45 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on home/OpenMQTTGateway/SRFBtoMQTT: b’{“raw”:“271A015E03DE1285A2”,“delay”:1001,“val_Tlow”:350,“val_Thigh”:990,“value”:123858}’
DEBUG (MainThread) [homeassistant.components.mqtt] Received message on home/OpenMQTTGateway/SRFBtoMQTT: b’{“raw”:“2724016803D41285A2”,“delay”:1002,“val_Tlow”:360,“val_Thigh”:980,“value”:1213858}’ 2019-07-06 11:28:57 INFO (MainThread) [homeassistant.components.automation] DEBUG (MainThread) [homeassistant.components.mqtt] Received message on home/OpenMQTTGateway/SRFBtoMQTT: b’{“raw”:“1194009601CCFFD157”,“delay”:4500,“val_Tlow”:150,“val_Thigh”:460,“value”:16765271}’
it seems Home Assistant only sees the last binary sensor defined. I found out by moving things around in configuration.yaml. I don’t know why or how to fix it.
That’s because you have “binary_sensor:” entered more than once. You can only have one of those. I’m surprised there are no errors in the logs telling you that. But here is how you should configure it:
Thanks ! This fixed it. Spent allready two days tinkering with configuration. Configuration -> General -> Configuration Validation never showed an error
That’s the rule for all top level domains (switch, sensor, binary_sensor, light, automation, etc). They are all entered into your configuration as a list in the same way by starting each sub-section with a dash.