I've updated HomeAssistant to 31.1 and can conform that it works again, as it should. Pymysensors is being updated to 0.80 by updating HomeAssistant. After a restart of HomeAssistant it updates the values of my sensors. Thanks.
Ernst79
@Ernst79
Best posts made by Ernst79
-
RE: Reconnect sensors after restart HA
Latest posts made by Ernst79
-
RE: Reconnect sensors after restart HA
I've updated HomeAssistant to 31.1 and can conform that it works again, as it should. Pymysensors is being updated to 0.80 by updating HomeAssistant. After a restart of HomeAssistant it updates the values of my sensors. Thanks.
-
RE: Reconnect sensors after restart HA
Thanks, That explains things. I'll wait till the update of HA.
Thanks again!
-
Reconnect sensors after restart HA
I'm trying to add a DHT and Dallas Temperature sensor to HA, but after restarting HA, they won't update their values anymore.
I'm using the MQTT gateway, with mysensors version 2.0.0 (both the sensors and the gateway). After the initial start, the persistence file gets created by HA and the sensors are added to the HA user interface perfectly. They are also updated every minute. However, after a restart of HA, the values are not updated anymore and they stay on the last temperature/humidity that was recorded before the restart. Also a restart of the sensors did not solve this.
The serial log of the sensor looks fine (to me).
Starting sensor (RNNNA-, 2.0.0) TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=1) TSM:FPAR TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSP:MSG:READ 0-0-1 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=1) TSM:UPL TSP:PING:SEND (dest=0) TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1 TSP:MSG:READ 0-0-1 s=255,c=3,t=25,pt=1,l=1,sg=0:1 TSP:MSG:PONG RECV (hops=1) TSP:CHKUPL:OK TSM:UPL:OK TSM:READY TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100 !TSP:MSG:SEND 1-1-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=fail:2.0.0 TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=ok:0 TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=11,pt=0,l=18,sg=0,ft=0,st=ok:Temperature Sensor TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.1 TSP:MSG:SEND 1-1-0-0 s=0,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok: TSP:MSG:SEND 1-1-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok: Request registration... TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2 TSP:MSG:READ 0-0-1 s=255,c=3,t=27,pt=1,l=1,sg=0:1 Node registration=1 Init complete, id=1, parent=0, distance=1, registration=1 TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:20.6 TSP:MSG:SEND 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:19.8 TSP:MSG:SEND 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:20.6 TSP:MSG:SEND 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:19.8
The log of HA is showing the following
16-10-09 20:55:52 mysensors.mysensors: Setting up initial MQTT topic subscription 16-10-09 20:55:52 homeassistant.components.mysensors: Update persistence: node 1 16-10-09 20:55:55 mysensors.mysensors: Subscribing to: mygateway1-out/+/+/0/+/+ 16-10-09 20:55:55 homeassistant.components.mysensors: Adding new devices: <Entity Temperature Sensor 1 0: None> 16-10-09 20:55:55 mysensors.mysensors: Subscribing to: mygateway1-out/+/+/3/+/+ 16-10-09 20:55:55 homeassistant.components.mysensors: Temperature Sensor 1 0: value_type 0, value = 20.8 16-10-09 20:55:55 homeassistant.components.mysensors: Adding new devices: <Entity Temperature Sensor 1 1: None> 16-10-09 20:55:55 homeassistant.components.mysensors: Temperature Sensor 1 1: value_type 0, value = 19.8 16-10-09 20:55:55 homeassistant.components.mysensors: Update persistence: node 2 16-10-09 20:55:55 homeassistant.components.mysensors: Adding new devices: <Entity TemperatureAndHumidity 2 2: None> 16-10-09 20:55:55 homeassistant.components.mysensors: TemperatureAndHumidity 2 2: value_type 1, value = 47.5 16-10-09 20:55:55 homeassistant.components.mysensors: Adding new devices: <Entity TemperatureAndHumidity 2 3: None> 16-10-09 20:55:55 homeassistant.components.mysensors: TemperatureAndHumidity 2 3: value_type 0, value = 20.3 16-10-09 21:02:48 mysensors.mysensors: Receiving 1;255;3;0;6;0 16-10-09 21:02:48 mysensors.mysensors: Publishing 1;255;3;0;6;M 16-10-09 21:02:50 mysensors.mysensors: Receiving 1;255;3;0;11;Temperature Sensor 16-10-09 21:02:50 mysensors.mysensors: Receiving 1;255;3;0;12;1.1 16-10-09 21:02:50 mysensors.mysensors: Receiving 1;0;0;0;6; 16-10-09 21:02:50 homeassistant.components.mysensors: Update sensor_update: node 1 16-10-09 21:02:50 homeassistant.components.mysensors: Temperature Sensor 1 0: value_type 0, value = 20.8 16-10-09 21:02:50 homeassistant.components.mysensors: Temperature Sensor 1 1: value_type 0, value = 19.8 16-10-09 21:02:50 homeassistant.components.mysensors: Update sensor_update: node 1 16-10-09 21:02:50 homeassistant.components.mysensors: Temperature Sensor 1 0: value_type 0, value = 20.8 16-10-09 21:02:50 homeassistant.components.mysensors: Temperature Sensor 1 1: value_type 0, value = 19.8 16-10-09 21:02:51 mysensors.mysensors: child_id 0 already exists in children of node 1, cannot add child 16-10-09 21:02:51 homeassistant.components.mysensors: Update sensor_update: node 1 16-10-09 21:02:51 homeassistant.components.mysensors: Temperature Sensor 1 0: value_type 0, value = 20.8 16-10-09 21:02:51 homeassistant.components.mysensors: Temperature Sensor 1 1: value_type 0, value = 19.8 16-10-09 21:02:51 mysensors.mysensors: Receiving 1;1;0;0;6; 16-10-09 21:02:51 mysensors.mysensors: child_id 1 already exists in children of node 1, cannot add child 16-10-09 21:02:51 homeassistant.components.mysensors: Update sensor_update: node 1 16-10-09 21:02:51 homeassistant.components.mysensors: Temperature Sensor 1 0: value_type 0, value = 20.8 16-10-09 21:02:51 homeassistant.components.mysensors: Temperature Sensor 1 1: value_type 0, value = 19.8
These temperatures are the ones which were recorded before restarting HA (and are in the persistence file). But after this, nothing happens anymore.
I don't know where to look further, to solve this.
-
RE: 💬 Building a MQTT Gateway
Seems that the W5100 sketch of the MQTT gateway is missing #include <SPI.h>.
I had to add it before #include <Ethernet.h>.