MySensors - USB gateway

Hi

It a trying to use MySensors gateway connected over USB.
I see two issues at the moment.

First one. My switch is not displayed by home-assistant GUI by default after boot. It appears after MySensors sends signal to home-assistant.

Second one is that i am not able to change state from home-assistant GUI. Logs says:

2017-11-11 00:44:32 INFO (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.switch, platform=mysensors, discovered=devices=[(1949681808, 0, 1, 2)], name=mysensors>
2017-11-11 00:44:32 INFO (MainThread) [homeassistant.loader] Loaded switch.mysensors from homeassistant.components.switch.mysensors
2017-11-11 00:44:32 INFO (MainThread) [homeassistant.components.switch] Setting up switch.mysensors
2017-11-11 00:44:32 INFO (SyncWorker_4) [homeassistant.components.mysensors] Adding new devices: [<Entity Relay 0 1: off>]
2017-11-11 00:44:32 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=switch, service=mysensors_send_ir_code>
2017-11-11 00:44:52 WARNING (Thread-2) [mysensors] Error decoding message from gateway, bad data received: Incoming change for sensor:1, New status: 0
2017-11-11 00:44:52 WARNING (Thread-2) [mysensors] Not a valid message:
2017-11-11 00:44:56 WARNING (Thread-2) [mysensors] Error decoding message from gateway, bad data received: Incoming change for sensor:1, New status: 0
2017-11-11 00:44:56 WARNING (Thread-2) [mysensors] Not a valid message:
2017-11-11 00:45:01 WARNING (Thread-2) [mysensors] Error decoding message from gateway, bad data received: Incoming change for sensor:1, New status: 0
2017-11-11 00:45:01 WARNING (Thread-2) [mysensors] Not a valid message:
2017-11-11 00:45:23 WARNING (Thread-2) [mysensors] Error decoding message from gateway, bad data received: Incoming change for sensor:1, New status: 0
2017-11-11 00:45:23 WARNING (Thread-2) [mysensors] Not a valid message:
2017-11-11 00:45:27 WARNING (Thread-2) [mysensors] Error decoding message from gateway, bad data received: Incoming change for sensor:1, New status: 0
2017-11-11 00:45:27 WARNING (Thread-2) [mysensors] Not a valid message:
2017-11-11 00:45:49 WARNING (Thread-2) [mysensors] Error decoding message from gateway, bad data received: Incoming change for sensor:1, New status: 0
2017-11-11 00:45:49 WARNING (Thread-2) [mysensors] Not a valid message:

I run few tests on domoticz, and my gateway works there - no issues.
Are those issues looks familiar (known bugs) or i am missing something.

Home assistant only accepts valid mysensors messages from the serial connection. Debug prints from the gateway on the serial console will generate those warnings. Either remove the debug prints or ignore the warnings.

I’m guessing you don’t send a feedback message from the device to home assistant of the state change, and that’s why the switch won’t change state in home assistant. I’d need to see a debug level log from home assistant to verify that.

All mysensors devices need to send at least one initial value to be added to home assistant, as you’ve experienced and as explained in the docs.

1 Like