OK
I can see the point
from the moquitto log toggling the relay with the direct relay control , not HA
<
1554236592: Received PUBLISH from esp8266d341de (d0, q0, r1, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554236592: Sending PUBLISH to mosqsub|1991-odroid (d0, q0, r0, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554236593: Received PUBLISH from esp8266d341de (d0, q0, r1, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554236593: Sending PUBLISH to mosqsub|1991-odroid (d0, q0, r0, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554236595: Received PUBLISH from esp8266d341de (d0, q0, r1, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554236595: Sending PUBLISH to mosqsub|1991-odroid (d0, q0, r0, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554236596: Received PUBLISH from esp8266d341de (d0, q0, r1, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554236596: Sending PUBLISH to mosqsub|1991-odroid (d0, q0, r0, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554236597: Received PUBLISH from esp8266d341de (d0, q0, r1, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
On the link from the manufacturer , he uses the same for command and state, but on the sensor only the state
hashing out the command_state
gives this
<
554237243: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
1554237243: Sending PUBLISH to mosqsub|1991-odroid (d0, q0, r0, m0, ‘/iot4/IOT4SH01RELAY_D341D/relay/0’, … (1 bytes))
/>
toggling the relay from HA
<
/iot4/IOT4SH01RELAY_D341D/relay/0 1
/iot4/IOT4SH01RELAY_D341D/relay/0 1
/iot4/IOT4SH01RELAY_D341D/relay/0 1
/iot4/IOT4SH01RELAY_D341D/relay/0 1
/iot4/IOT4SH01RELAY_D341D/relay/0 1
/>
that looks like it sjust telling it to turn on and on and on, just sending a “1”
or am I misreading it