You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to declare both a SWITCH and BINARY SENSOR in the same arduino sketch I noticed some strange behaviour - for the second device declared, the status topic (stat_t) was omitted from the config payload which appears to be causing homeassistant to fail to import the sensor. i.e. in the example below, garagedoorZSC wouldn't include stat_t even if I manually included garagedoorZSC.enableStateTopic();. If I reversed the following two lines, 'garagedoorZSC' would now include stat_t but 'garagedoor' would not.
When attempting to declare both a SWITCH and BINARY SENSOR in the same arduino sketch I noticed some strange behaviour - for the second device declared, the status topic (stat_t) was omitted from the config payload which appears to be causing homeassistant to fail to import the sensor. i.e. in the example below, garagedoorZSC wouldn't include stat_t even if I manually included garagedoorZSC.enableStateTopic();. If I reversed the following two lines, 'garagedoorZSC' would now include stat_t but 'garagedoor' would not.
Arduino code and outputs from serial for the two different cases:
thanks, Dave
The text was updated successfully, but these errors were encountered: