Home Assistant v 0.11.1 with switch support
-
Update: Bugfix release 0.11.1 is now out.
-
I'm not sure that the library provided with mysensors supports DHT21 (AM2301). The readme for DHT library only mentions "DHT11 and DHT22, AM2302, RHT03".
But I found this post, where the adafruit library is used together with mysensors:
http://forum.mysensors.org/topic/841/solar-powered-mini-weather-station/53As long as you get your temp/hum sensors going with the correct library there shouldn't be a problem of presenting them as mysensors sensors to home assistant.
-
Well I will look into, thank you!
I do not know if this is the right place for further problems, if not tell me.
I tried to remote control a relay today
I used the official sketch of MYS at https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/RelayActuator/RelayActuator.inoEven though it Looks like they are properly connected, there is no switch appearing on HA-Dashboard.
Log of the Sensor-Arduino Running RelayActuator.ino:send: 1-1-0-0 s=255,c=0,t=18,pt=0,l=5,sg=0,st=ok:1.5.1 send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0 read: 0-0-1 s=255,c=3,t=6,pt=0,l=1,sg=0:M repeater started, id=1, parent=0, distance=1 send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0 send: 1-1-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:Log of HA:
INFO:mysensors.mysensors:/dev/ttyUSB0 is open... INFO:mysensors.mysensors:Connected to /dev/ttyUSB0 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:gateway started, id=0, parent=0, distance=0 INFO:homeassistant.components.sensor:Updating sensor entities INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=0,t=18,pt=0,l=5,sg=0:1.5.1 INFO:homeassistant.components.mysensors:update sensor_update: node 1 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:send: 0-0-1-1 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay INFO:homeassistant.components.mysensors:update sensor_update: node 1 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0 INFO:homeassistant.components.mysensors:update sensor_update: node 1 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=1,c=0,t=3,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 1 INFO:homeassistant.components.device_tracker.nmap_tracker:Scanning INFO:homeassistant.components.device_tracker.nmap_tracker:No MAC address found for 192.168.2.111 INFO:homeassistant.components.device_tracker.nmap_tracker:nmap scan successful INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=0,t=18,pt=0,l=5,sg=0:1.5.1 INFO:homeassistant.components.mysensors:update sensor_update: node 1 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:send: 0-0-1-1 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay INFO:homeassistant.components.mysensors:update sensor_update: node 1 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0 INFO:homeassistant.components.mysensors:update sensor_update: node 1 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=1,c=0,t=3,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 1``` -
Sorry, I forgot to ask, is it implemented yet? :D
I just scrambled through the code at HA
https://github.com/balloob/home-assistant/blob/dev/homeassistant/components/switch/mysensors.py
and I could not detect the RELAY type. But than again I do not know alot of both of the systems, just guessing. -
Sorry, I forgot to ask, is it implemented yet? :D
I just scrambled through the code at HA
https://github.com/balloob/home-assistant/blob/dev/homeassistant/components/switch/mysensors.py
and I could not detect the RELAY type. But than again I do not know alot of both of the systems, just guessing.You should send a value from the node child to set initial state also. I think that's what's missing.
Read my post here:
http://forum.mysensors.org/topic/2388/home-assistant-how-to-recognize-mysensors-nodes/27 -
@martinhjelmare
Would you mind to elaborate a bit more?
I am not sure how to alter the script. -
@martinhjelmare
Would you mind to elaborate a bit more?
I am not sure how to alter the script.For example:
... MySensor gw; MyMessage msgArray[NUMBER_OF_RELAYS]; for (int sensor=1; sensor<=NUMBER_OF_RELAYS;sensor++) { msgArray[sensor-1] = msg(sensor, V_STATUS); } void setup() { ... gw.begin(); for (int sensor=1; sensor<=NUMBER_OF_RELAYS;sensor++) { gw.present(sensor, S_BINARY); gw.send(msgArray[sensor-1].set(0)); } ... }If you don't need to send any more messages after the setup funtion, ie access the message variables in the array anywhere else, you can move the assigning of the array in the first for loop to the second for loop in the setup function, to avoid code duplication.
You need to send at least one value per child to populate all data structures in home assistant.
Edit: You can actually move the assigning of the array and only have one for loop, inside the setup funtion, anyhow, since the array is initialized separately outside the functions.
-
I have installed 0.11.1 and added the lines to configuration.yaml, but my sensors are bit showing in ha itself. The ID of the nodes is being passed to ha in the log, but nothing else. Trying to set to a pir, temp/humid, and relay switches.
-
I have installed 0.11.1 and added the lines to configuration.yaml, but my sensors are bit showing in ha itself. The ID of the nodes is being passed to ha in the log, but nothing else. Trying to set to a pir, temp/humid, and relay switches.
Please show me the home assistant log. I can't really say anything useful without it.
-
here is the output from /home/pi/.homeassistant/home-assistant.log:
6-01-24 15:08:16 netdisco.ssdp: Found malformed XML at http://192.168.86.142:9080: status=okThis is my configuration.yaml
homeassistant: # Name of the location where Home Assistant is running name: Home # Location required to calculate the time the sun rises and sets latitude: longitude: # C for Celcius, F for Fahrenheit temperature_unit: C # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones time_zone: America/Halifax # Enables the frontend frontend: # Checks for available updates updater: # View all events in a logbook logbook: # Track the sun sun: # Enables support for tracking state changes over time. history: # Show links to resources in log and frontend #introduction: # Allows you to issue voice commands from the frontend conversation: # Discover some devices automatically discovery: # Webcams camera 1: platform: mjpeg mjpeg_url: http://192.168.86.117:10012/videofeed name: LivingRoom Camera username: root password: groot # Squeezebox Server media_player 1: platform: squeezebox host: 192.168.86.113 port: 9090 # MySensors Serial Gateway mysensors: gateways: - port: '/dev/ttyUSB0' persistence_file: '/home/pi/.homeassistant/mysensors.json' # debug: true persistence: true version: '1.5'Would it be because my nodes are set for manual ID and not auto?
-
here is the output from /home/pi/.homeassistant/home-assistant.log:
6-01-24 15:08:16 netdisco.ssdp: Found malformed XML at http://192.168.86.142:9080: status=okThis is my configuration.yaml
homeassistant: # Name of the location where Home Assistant is running name: Home # Location required to calculate the time the sun rises and sets latitude: longitude: # C for Celcius, F for Fahrenheit temperature_unit: C # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones time_zone: America/Halifax # Enables the frontend frontend: # Checks for available updates updater: # View all events in a logbook logbook: # Track the sun sun: # Enables support for tracking state changes over time. history: # Show links to resources in log and frontend #introduction: # Allows you to issue voice commands from the frontend conversation: # Discover some devices automatically discovery: # Webcams camera 1: platform: mjpeg mjpeg_url: http://192.168.86.117:10012/videofeed name: LivingRoom Camera username: root password: groot # Squeezebox Server media_player 1: platform: squeezebox host: 192.168.86.113 port: 9090 # MySensors Serial Gateway mysensors: gateways: - port: '/dev/ttyUSB0' persistence_file: '/home/pi/.homeassistant/mysensors.json' # debug: true persistence: true version: '1.5'Would it be because my nodes are set for manual ID and not auto?
The log file only outputs errors as default. Try starting home assistant from the command line with
hassand then copy the output. It should be a lot more than one line.You should shut down home assistant first if you have it running as a service.
Activate debug first for mysensors though.
-
Here is the .log file
16-01-24 15:25:28 mysensors.mysensors: Error decoding message from gateway, probably received bad byte.And from the SSH console after running hass as instructed
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.master_bedroom=off; supported_media_commands=1021, friendly_name=Master Bedroom @ 15:25:41 24-01-2016>, entity_id=media_player.master_bedroom> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.man_cave=off; supported_media_commands=1021, friendly_name=Man Cave @ 15:25:41 24-01-2016>, entity_id=media_player.man_cave> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:pywemo.subscribe:Subscribing to events from <WeMo Switch "CatFan"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:pywemo.subscribe:Subscribing to events from <WeMo Switch "LivingRoomLamp"> INFO:pywemo.subscribe:Resubscribe for <WeMo Switch "CatFan"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.living_room=off; supported_media_commands=1021, friendly_name=Living Room @ 15:25:41 24-01-2016>, entity_id=media_player.living_room> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state switch.catfan=off; friendly_name=CatFan @ 15:25:41 24-01-2016>, entity_id=switch.catfan> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=unknown; auto=True, entity_id=[], friendly_name=all switches @ 15:25:41 24-01-2016>, entity_id=group.all_switches> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=off; auto=True, entity_id=('switch.catfan',), friendly_name=all switches @ 15:25:41 24-01-2016>, entity_id=group.all_switches> INFO:pywemo.subscribe:Resubscribe for <WeMo Switch "LivingRoomLamp"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:pywemo.subscribe:Received event from <WeMo Switch "CatFan">(192.168.86.108) INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:homeassistant.components.switch.wemo:Subscription update for <WeMo Switch "CatFan"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state switch.livingroomlamp=off; friendly_name=LivingRoomLamp @ 15:25:42 24-01-2016>, entity_id=switch.livingroomlamp> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=off; auto=True, entity_id=('switch.catfan', 'switch.livingroomlamp'), friendly_name=all switches @ 15:25:42 24-01-2016>, entity_id=group.all_switches> INFO:pywemo.subscribe:Received event from <WeMo Switch "LivingRoomLamp">(192.168.86.163) INFO:homeassistant.components.switch.wemo:Subscription update for <WeMo Switch "LivingRoomLamp"> INFO:pywemo.subscribe:Subscribing to events from <WeMo Insight "Christmas Tree Lights"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:pywemo.subscribe:Resubscribe for <WeMo Insight "Christmas Tree Lights"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state switch.christmas_tree_lights=off; friendly_name=Christmas Tree Lights @ 15:25:42 24-01-2016>, entity_id=switch.christmas_tree_lights> INFO:pywemo.subscribe:Received event from <WeMo Insight "Christmas Tree Lights">(192.168.86.111) INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=off; auto=True, entity_id=('switch.christmas_tree_lights', 'switch.catfan', 'switch.livingroomlamp'), friendly_name=all switches @ 15:25:42 24-01-2016>, entity_id=group.all_switches> INFO:homeassistant.components.switch.wemo:Subscription update for <WeMo Insight "Christmas Tree Lights"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:pywemo.subscribe:Received event from <WeMo Insight "Christmas Tree Lights">(192.168.86.111) INFO:homeassistant.components.switch.wemo:Subscription update for <WeMo Insight "Christmas Tree Lights"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.http:"GET /states HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/frontend-1003c31441ec44b3db84b49980f736a7.html HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon-192x192.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon.ico HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.http:"GET /api/error_log HTTP/1.1" 200 - INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663560.5128732, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, old_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663530.5116684, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, entity_id=camera.livingroom_camera> INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=0,t=17,pt=0,l=5,sg=0:1.5.1 INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:send: 0-0-3-3 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=11,pt=0,l=25,sg=0:2 Door bell/chime INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0 INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=1,c=0,t=3,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=0,c=0,t=1,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=3,c=0,t=3,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=2,c=0,t=1,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:homeassistant.components.media_player:Updating media_player entities INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.http:"GET /states HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/frontend-1003c31441ec44b3db84b49980f736a7.html HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon-192x192.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon.ico HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.api:Found broken event stream to 192.168.86.162, cleaning up INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663590.5271018, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, old_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663560.5128732, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, entity_id=camera.livingroom_camera> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; next_rising=11:43:05 25-01-2016, elevation=14.76, next_setting=21:15:13 24-01-2016, friendly_name=Sun @ 15:25:24 24-01-2016>, old_state=<state sun.sun=above_horizon; next_rising=11:43:05 25-01-2016, elevation=14.88, next_setting=21:15:13 24-01-2016, friendly_name=Sun @ 15:25:24 24-01-2016>, entity_id=sun.sun> INFO:homeassistant.components.api:Found broken event stream to 192.168.86.162, cleaning up INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.5 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.6 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663620.51471, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, old_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663590.5271018, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, entity_id=camera.livingroom_camera> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.media_player:Updating media_player entities INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663650.5204854, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, old_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663620.51471, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, entity_id=camera.livingroom_camera> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; next_rising=11:43:05 25-01-2016, elevation=14.63, next_setting=21:15:13 24-01-2016, friendly_name=Sun @ 15:25:24 24-01-2016>, old_state=<state sun.sun=above_horizon; next_rising=11:43:05 25-01-2016, elevation=14.76, next_setting=21:15:13 24-01-2016, friendly_name=Sun @ 15:25:24 24-01-2016>, entity_id=sun.sun> INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.5 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 -
Here is the .log file
16-01-24 15:25:28 mysensors.mysensors: Error decoding message from gateway, probably received bad byte.And from the SSH console after running hass as instructed
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.master_bedroom=off; supported_media_commands=1021, friendly_name=Master Bedroom @ 15:25:41 24-01-2016>, entity_id=media_player.master_bedroom> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.man_cave=off; supported_media_commands=1021, friendly_name=Man Cave @ 15:25:41 24-01-2016>, entity_id=media_player.man_cave> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:pywemo.subscribe:Subscribing to events from <WeMo Switch "CatFan"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:pywemo.subscribe:Subscribing to events from <WeMo Switch "LivingRoomLamp"> INFO:pywemo.subscribe:Resubscribe for <WeMo Switch "CatFan"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.living_room=off; supported_media_commands=1021, friendly_name=Living Room @ 15:25:41 24-01-2016>, entity_id=media_player.living_room> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state switch.catfan=off; friendly_name=CatFan @ 15:25:41 24-01-2016>, entity_id=switch.catfan> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=unknown; auto=True, entity_id=[], friendly_name=all switches @ 15:25:41 24-01-2016>, entity_id=group.all_switches> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=off; auto=True, entity_id=('switch.catfan',), friendly_name=all switches @ 15:25:41 24-01-2016>, entity_id=group.all_switches> INFO:pywemo.subscribe:Resubscribe for <WeMo Switch "LivingRoomLamp"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:pywemo.subscribe:Received event from <WeMo Switch "CatFan">(192.168.86.108) INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:homeassistant.components.switch.wemo:Subscription update for <WeMo Switch "CatFan"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state switch.livingroomlamp=off; friendly_name=LivingRoomLamp @ 15:25:42 24-01-2016>, entity_id=switch.livingroomlamp> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=off; auto=True, entity_id=('switch.catfan', 'switch.livingroomlamp'), friendly_name=all switches @ 15:25:42 24-01-2016>, entity_id=group.all_switches> INFO:pywemo.subscribe:Received event from <WeMo Switch "LivingRoomLamp">(192.168.86.163) INFO:homeassistant.components.switch.wemo:Subscription update for <WeMo Switch "LivingRoomLamp"> INFO:pywemo.subscribe:Subscribing to events from <WeMo Insight "Christmas Tree Lights"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:pywemo.subscribe:Resubscribe for <WeMo Insight "Christmas Tree Lights"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state switch.christmas_tree_lights=off; friendly_name=Christmas Tree Lights @ 15:25:42 24-01-2016>, entity_id=switch.christmas_tree_lights> INFO:pywemo.subscribe:Received event from <WeMo Insight "Christmas Tree Lights">(192.168.86.111) INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_switches=off; auto=True, entity_id=('switch.christmas_tree_lights', 'switch.catfan', 'switch.livingroomlamp'), friendly_name=all switches @ 15:25:42 24-01-2016>, entity_id=group.all_switches> INFO:homeassistant.components.switch.wemo:Subscription update for <WeMo Insight "Christmas Tree Lights"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:pywemo.subscribe:Received event from <WeMo Insight "Christmas Tree Lights">(192.168.86.111) INFO:homeassistant.components.switch.wemo:Subscription update for <WeMo Insight "Christmas Tree Lights"> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.http:"GET /states HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/frontend-1003c31441ec44b3db84b49980f736a7.html HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon-192x192.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon.ico HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.http:"GET /api/error_log HTTP/1.1" 200 - INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663560.5128732, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, old_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663530.5116684, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, entity_id=camera.livingroom_camera> INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=0,t=17,pt=0,l=5,sg=0:1.5.1 INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:send: 0-0-3-3 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=11,pt=0,l=25,sg=0:2 Door bell/chime INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0 INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=1,c=0,t=3,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=0,c=0,t=1,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=3,c=0,t=3,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=2,c=0,t=1,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:homeassistant.components.media_player:Updating media_player entities INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.http:"GET /states HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/frontend-1003c31441ec44b3db84b49980f736a7.html HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon-192x192.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon.ico HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.api:Found broken event stream to 192.168.86.162, cleaning up INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663590.5271018, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, old_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663560.5128732, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, entity_id=camera.livingroom_camera> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; next_rising=11:43:05 25-01-2016, elevation=14.76, next_setting=21:15:13 24-01-2016, friendly_name=Sun @ 15:25:24 24-01-2016>, old_state=<state sun.sun=above_horizon; next_rising=11:43:05 25-01-2016, elevation=14.88, next_setting=21:15:13 24-01-2016, friendly_name=Sun @ 15:25:24 24-01-2016>, entity_id=sun.sun> INFO:homeassistant.components.api:Found broken event stream to 192.168.86.162, cleaning up INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.5 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.6 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663620.51471, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, old_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663590.5271018, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, entity_id=camera.livingroom_camera> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.media_player:Updating media_player entities INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663650.5204854, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, old_state=<state camera.livingroom_camera=idle; entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453663620.51471, friendly_name=LivingRoom Camera @ 15:25:24 24-01-2016>, entity_id=camera.livingroom_camera> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; next_rising=11:43:05 25-01-2016, elevation=14.63, next_setting=21:15:13 24-01-2016, friendly_name=Sun @ 15:25:24 24-01-2016>, old_state=<state sun.sun=above_horizon; next_rising=11:43:05 25-01-2016, elevation=14.76, next_setting=21:15:13 24-01-2016, friendly_name=Sun @ 15:25:24 24-01-2016>, entity_id=sun.sun> INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=0,c=1,t=1,pt=7,l=5,sg=0:46.5 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1Is it node 3 that is missing for you? It seems you're presenting it fine but never send the needed value for the four sensors, 0-3, on the node.
Then you also have node 1 with two sensors 0 and 2 that seems to update, but you haven't posted the beginning of the log where those are presented or loaded from persistence. I'm also missing the gateway started confirmation in the log.
-
the file /home/pi/.homeassistant/home-assistant.log has no errors in it, and it's all of my nodes that are missing (1 through 4 and 6), Node 5 isn't online right now.
Is that what you are looking for at the top?
INFO:homeassistant.components.recorder:Closing database pi@home-assistant:~/.homeassistant $ clear pi@home-assistant:~/.homeassistant $ hass Config directory: /home/pi/.homeassistant WARNING:homeassistant.bootstrap:Colorlog package not found, console coloring disabled INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on> INFO:homeassistant.bootstrap:Home Assistant core initialized INFO:homeassistant.loader:Loaded mysensors from homeassistant.components.mysensors INFO:homeassistant.loader:Loaded media_player from homeassistant.components.media_player INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun INFO:homeassistant.loader:Loaded updater from homeassistant.components.updater INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery INFO:homeassistant.loader:Loaded conversation from homeassistant.components.conversation INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend INFO:homeassistant.loader:Loaded api from homeassistant.components.api INFO:homeassistant.loader:Loaded http from homeassistant.components.http INFO:homeassistant.loader:Loaded logbook from homeassistant.components.logbook INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder INFO:homeassistant.loader:Loaded history from homeassistant.components.history INFO:homeassistant.loader:Loaded camera from homeassistant.components.camera INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=recorder> INFO:homeassistant.loader:Loaded sensor from homeassistant.components.sensor INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=sensor> INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=mysensors.sensors, discovered=> INFO:homeassistant.loader:Loaded switch from homeassistant.components.switch INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=switch, service=turn_off> INFO:homeassistant.loader:Loaded sensor.mysensors from homeassistant.components.sensor.mysensors INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=switch, service=turn_on> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=switch> INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=mysensors.switches, discovered=> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=mysensors> INFO:homeassistant.loader:Loaded switch.mysensors from homeassistant.components.switch.mysensors INFO:homeassistant.loader:Loaded media_player.squeezebox from homeassistant.components.media_player.squeezebox INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.airspeaker=off; friendly_name=AirSpeaker, supported_media_commands=447 @ 17:05:03 24-01-2016>, entity_id=media_player.airspeaker> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_play> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_down> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_play_pause> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_pause> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_up> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_previous_track> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=turn_off> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=play_media> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_next_track> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=turn_on> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_set> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_mute> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_seek> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=start_fireplace> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=start_epic_sax> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=play_youtube_video> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=play_media> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=media_player> INFO:urllib3.connectionpool:Starting new HTTP connection (1): maps.googleapis.com INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; next_setting=21:15:13 24-01-2016, next_rising=11:43:05 25-01-2016, friendly_name=Sun, elevation=1.17 @ 17:05:03 24-01-2016>, entity_id=sun.sun> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=sun> INFO:urllib3.connectionpool:Starting new HTTPS connection (1): pypi.python.org INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=updater> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=discovery> /home/pi/.homeassistant/lib/fuzzywuzzy/fuzz.py:33: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning') INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=conversation, service=process> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=conversation> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=http> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=api> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=frontend> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=logbook> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=history> INFO:homeassistant.loader:Loaded camera.mjpeg from homeassistant.components.camera.mjpeg INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; friendly_name=LivingRoom Camera, entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453669504.2007444 @ 17:05:04 24-01-2016>, entity_id=camera.livingroom_camera> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=camera> INFO:homeassistant.core:Starting Home Assistant (17 threads) INFO:homeassistant.core:Bus:Handling <Event homeassistant_start[L]> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop> INFO:mysensors.mysensors:Trying to connect to /dev/ttyUSB0 INFO:homeassistant.core:Timer:starting INFO:homeassistant.components.http:Starting web interface at http://0.0.0.0:8123 INFO:homeassistant.components.mysensors:update persistence: node 2 INFO:homeassistant.components.mysensors:No sketch_name: node 2 INFO:homeassistant.components.mysensors:No sketch_name: node 2 INFO:homeassistant.components.mysensors:update persistence: node 3 INFO:netdisco.service:Scanning INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:mysensors.mysensors:/dev/ttyUSB0 is open... INFO:mysensors.mysensors:Connected to /dev/ttyUSB0 WARNING:mysensors.mysensors:Error decoding message from gateway, probably received bad byte. INFO:homeassistant.components.media_player:Updating media_player entities INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.4 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.1 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.113 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.113 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.101 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.163 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.108 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.111 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.142 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.199 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.102 INFO:homeassistant.components.discovery:Found new service: DLNA http://192.168.86.4:32469/DeviceDescription.xml INFO:homeassistant.components.discovery:Found new service: DLNA http://192.168.86.113:9000/plugins/UPnP/MediaServer.xml INFO:homeassistant.components.discovery:Found new service: google_cast ('192.168.86.101', 8009) INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=google_cast, discovered=('192.168.86.101', 8009)> INFO:homeassistant.components.discovery:Found new service: google_cast ('192.168.86.102', 8009) INFO:homeassistant.loader:Loaded media_player.cast from homeassistant.components.media_player.cast INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=google_cast, discovered=('192.168.86.102', 8009)> INFO:homeassistant.components.discovery:Found new service: belkin_wemo ('Christmas Tree Lights', 'Insight', 'http://192.168.86.111:49153/setup.xml', '94103E395F2C') INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=belkin_wemo, discovered=('Christmas Tree Lights', 'Insight', 'http://192.168.86.111:49153/setup.xml', '94103E395F2C')> INFO:homeassistant.components.discovery:Found new service: belkin_wemo ('CatFan', 'Socket', 'http://192.168.86.108:49153/setup.xml', '94103E30CDBC') INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=belkin_wemo, discovered=('CatFan', 'Socket', 'http://192.168.86.108:49153/setup.xml', '94103E30CDBC')> INFO:homeassistant.components.discovery:Found new service: belkin_wemo ('LivingRoomLamp', 'Socket', 'http://192.168.86.163:49153/setup.xml', '94103E30C688') INFO:homeassistant.loader:Loaded switch.wemo from homeassistant.components.switch.wemo INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=belkin_wemo, discovered=('LivingRoomLamp', 'Socket', 'http://192.168.86.163:49153/setup.xml', '94103E30C688')> INFO:homeassistant.loader:Loaded switch.wemo from homeassistant.components.switch.wemo ERROR:homeassistant.components.switch:Error while setting up platform wemo Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 145, in _setup_platform self.hass, platform_config, self.add_entities, discovery_info) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/wemo.py", line 25, in setup_platform import pywemo.discovery as discovery AttributeError: 'module' object has no attribute 'discovery' ERROR:homeassistant.components.switch:Error while setting up platform wemo Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 145, in _setup_platform self.hass, platform_config, self.add_entities, discovery_info) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/wemo.py", line 25, in setup_platform import pywemo.discovery as discovery AttributeError: 'module' object has no attribute 'discovery' ERROR:homeassistant.components.switch:Error while setting up platform wemo Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 145, in _setup_platform self.hass, platform_config, self.add_entities, discovery_info) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/switch/wemo.py", line 25, in setup_platform import pywemo.discovery as discovery AttributeError: 'module' object has no attribute 'discovery' INFO:pychromecast:Querying device status INFO:pychromecast:Querying device status INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.102 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.101 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.man_cave=off; friendly_name=Man Cave, supported_media_commands=1021 @ 17:05:19 24-01-2016>, entity_id=media_player.man_cave> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state media_player.master_bedroom=off; friendly_name=Master Bedroom, supported_media_commands=1021 @ 17:05:19 24-01-2016>, entity_id=media_player.master_bedroom> INFO:homeassistant.components.discovery:Found new service: plex_mediaserver ('Rocknet Server', 'https://192.168.86.4:32400') INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=plex_mediaserver, discovered=('Rocknet Server', 'https://192.168.86.4:32400')> INFO:homeassistant.components.discovery:Found new service: philips_hue ('Philips hue (192.168.86.199)', 'http://192.168.86.199:80/') INFO:homeassistant.loader:Loaded media_player.plex from homeassistant.components.media_player.plex INFO:homeassistant.loader:Loaded light from homeassistant.components.light INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=light, service=turn_on> INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=light, service=turn_off> INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=light> INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=philips_hue, discovered=('Philips hue (192.168.86.199)', 'http://192.168.86.199:80/')> INFO:homeassistant.loader:Loaded light.hue from homeassistant.components.light.hue INFO:phue:Attempting to connect to the bridge... INFO:phue:Using ip: 192.168.86.199 INFO:phue:Using username from config: 30f609e6210320e41f0dfc32220a525f Exception in thread Thread-25: Traceback (most recent call last): File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner self.run() File "/home/pi/.homeassistant/lib/zeroconf.py", line 1063, in run handler(self.zc) File "/home/pi/.homeassistant/lib/zeroconf.py", line 1014, in <lambda> state_change=state_change, File "/home/pi/.homeassistant/lib/zeroconf.py", line 931, in fire h(**kwargs) File "/home/pi/.homeassistant/lib/zeroconf.py", line 989, in on_change listener.add_service(*args) File "/home/pi/.homeassistant/lib/netdisco/discoverables/__init__.py", line 84, in add_service service = zconf.get_service_info(typ, name) File "/home/pi/.homeassistant/lib/zeroconf.py", line 1404, in get_service_info if info.request(self, timeout): File "/home/pi/.homeassistant/lib/zeroconf.py", line 1221, in request zc.send(out) File "/home/pi/.homeassistant/lib/zeroconf.py", line 1663, in send bytes_sent = s.sendto(packet, 0, (addr, port)) OSError: [Errno 9] Bad file descriptor INFO:plexapi:GET http://192.168.86.4:32400/ INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.4 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.master_bedroom_1=off; friendly_name=Master bedroom 1 @ 17:05:20 24-01-2016>, entity_id=light.master_bedroom_1> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.master_bedroom_2=off; friendly_name=Master bedroom 2 @ 17:05:20 24-01-2016>, entity_id=light.master_bedroom_2> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.aprils_lamp=off; friendly_name=April's lamp @ 17:05:20 24-01-2016>, entity_id=light.aprils_lamp> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.living_room_light_1=off; friendly_name=Living room light 1 @ 17:05:20 24-01-2016>, entity_id=light.living_room_light_1> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.master_bedroom_light_strip=off; friendly_name=Master bedroom light strip @ 17:05:20 24-01-2016>, entity_id=light.master_bedroom_light_strip> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.living_room_light_2=off; friendly_name=Living room light 2 @ 17:05:20 24-01-2016>, entity_id=light.living_room_light_2> INFO:homeassistant.components.media_player.plex:Connected to: htts://192.168.86.4:32400 INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.master_bedroom_3=off; friendly_name=Master bedroom 3 @ 17:05:20 24-01-2016>, entity_id=light.master_bedroom_3> INFO:plexapi:GET http://192.168.86.4:32400/clients INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_lights=unknown; entity_id=[], friendly_name=all lights, auto=True @ 17:05:20 24-01-2016>, entity_id=group.all_lights> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_lights=off; entity_id=('light.living_room_light_1', 'light.living_room_light_2', 'light.master_bedroom_3', 'light.master_bedroom_2', 'light.master_bedroom_1', 'light.master_bedroom_light_strip', 'light.aprils_lamp'), friendly_name=all lights, auto=True @ 17:05:20 24-01-2016>, entity_id=group.all_lights> INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.4 INFO:plexapi:GET http://192.168.86.4:32400/status/sessions INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.4 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; friendly_name=LivingRoom Camera, entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453669530.5242217 @ 17:05:04 24-01-2016>, entity_id=camera.livingroom_camera, old_state=<state camera.livingroom_camera=idle; friendly_name=LivingRoom Camera, entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453669504.2007444 @ 17:05:04 24-01-2016>> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; next_setting=21:15:13 24-01-2016, next_rising=11:43:05 25-01-2016, friendly_name=Sun, elevation=1.1 @ 17:05:03 24-01-2016>, entity_id=sun.sun, old_state=<state sun.sun=above_horizon; next_setting=21:15:13 24-01-2016, next_rising=11:43:05 25-01-2016, friendly_name=Sun, elevation=1.17 @ 17:05:03 24-01-2016>> INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=0,t=17,pt=0,l=5,sg=0:1.5.1 INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:send: 0-0-3-3 s=255,c=3,t=6,pt=0,l=1,sg=0,st=ok:M INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=11,pt=0,l=25,sg=0:2 Door bell/chime INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0 INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=1,c=0,t=3,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=0,c=0,t=1,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=3,c=0,t=3,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 3-3-0 s=2,c=0,t=1,pt=0,l=0,sg=0: INFO:homeassistant.components.mysensors:update sensor_update: node 3 INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.http:"GET /states HTTP/1.1" 200 - INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.http:"GET /static/frontend-1003c31441ec44b3db84b49980f736a7.html HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon-192x192.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon.ico HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=homeassistant, entity_id=light.living_room_light_1, service_call_id=1981876976-1, service=turn_on> INFO:homeassistant.loader:Loaded group from homeassistant.components.group INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=light, entity_id=['light.living_room_light_1'], service_call_id=1981876976-2, service=turn_on> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.living_room_light_1=on; brightness=254, friendly_name=Living room light 1 @ 17:05:47 24-01-2016>, entity_id=light.living_room_light_1, old_state=<state light.living_room_light_1=off; friendly_name=Living room light 1 @ 17:05:20 24-01-2016>> INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1981876976-2> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_lights=on; entity_id=('light.living_room_light_1', 'light.living_room_light_2', 'light.master_bedroom_3', 'light.master_bedroom_2', 'light.master_bedroom_1', 'light.master_bedroom_light_strip', 'light.aprils_lamp'), friendly_name=all lights, auto=True @ 17:05:47 24-01-2016>, entity_id=group.all_lights, old_state=<state group.all_lights=off; entity_id=('light.living_room_light_1', 'light.living_room_light_2', 'light.master_bedroom_3', 'light.master_bedroom_2', 'light.master_bedroom_1', 'light.master_bedroom_light_strip', 'light.aprils_lamp'), friendly_name=all lights, auto=True @ 17:05:20 24-01-2016>> INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1981876976-1> INFO:homeassistant.components.api:Found broken event stream to 192.168.86.162, cleaning up INFO:homeassistant.components.http:"POST /api/services/homeassistant/turn_on HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/history/period?filter_entity_id=light.living_room_light_2 HTTP/1.1" 200 - INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=homeassistant, entity_id=light.living_room_light_2, service_call_id=1981876976-3, service=turn_on> INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=light, entity_id=['light.living_room_light_2'], service_call_id=1981876976-4, service=turn_on> INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state light.living_room_light_2=on; brightness=254, friendly_name=Living room light 2 @ 17:05:49 24-01-2016>, entity_id=light.living_room_light_2, old_state=<state light.living_room_light_2=off; friendly_name=Living room light 2 @ 17:05:20 24-01-2016>> INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1981876976-4> INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1981876976-3> INFO:homeassistant.components.http:"POST /api/services/homeassistant/turn_on HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/history/period?filter_entity_id=light.living_room_light_1 HTTP/1.1" 200 - INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.components.http:"GET /states HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/frontend-1003c31441ec44b3db84b49980f736a7.html HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon-192x192.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon.ico HTTP/1.1" 200 - INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:homeassistant.components.http:"GET /api/error_log HTTP/1.1" 200 - INFO:homeassistant.components.camera:Updating camera entities INFO:homeassistant.components.light:Updating light entities INFO:homeassistant.components.media_player:Updating media_player entities INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state camera.livingroom_camera=idle; friendly_name=LivingRoom Camera, entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453669560.5092123 @ 17:05:04 24-01-2016>, entity_id=camera.livingroom_camera, old_state=<state camera.livingroom_camera=idle; friendly_name=LivingRoom Camera, entity_picture=/api/camera_proxy/camera.livingroom_camera?time=1453669530.5242217 @ 17:05:04 24-01-2016>> INFO:homeassistant.components.http:"GET /devInfo HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/frontend-1003c31441ec44b3db84b49980f736a7.html HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon-192x192.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/favicon.ico HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/error_log HTTP/1.1" 200 - INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.86.117 INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=2,c=1,t=16,pt=0,l=1,sg=0:1 INFO:homeassistant.components.media_player:Updating media_player entities ^CINFO:homeassistant.core:Stopping INFO:homeassistant.core:Bus:Handling <Event homeassistant_stop[L]> INFO:mysensors.mysensors:Disconnecting from /dev/ttyUSB0 INFO:mysensors.mysensors:Stopping thread INFO:homeassistant.components.recorder:Closing database pi@home-assistant:~/.homeassistant $ -
I'm still trying to get this to work, with mixed results. Noticed on startup sometimes that HA was starting before my Serial port was initialized. Added a .timer file to delay the start of HA until the Pi is fully booted. Still having problems, but now i'm getting this in the HA logs:
16-01-24 18:37:40 homeassistant.core: BusHandler:Exception doing job Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 829, in job_handler func(arg) File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 302, in onetime_listener listener(event) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mysensors.py", line 104, in gw_start gateway.event_callback('persistence', node_id) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mysensors.py", line 226, in node_update callback(self, node_id) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mysensors.py", line 165, in mysensors_callback add_devices(devices[node_id]) File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 81, in add_entities entity.update_ha_state() File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 108, in update_ha_state self.unit_of_measurement is not None: File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/mysensors.py", line 137, in unit_of_measurement self.value_type == self.gateway.const.SetReq.V_PERCENTAGE or \ File "/usr/lib/python3.4/enum.py", line 255, in __getattr__ raise AttributeError(name) from None AttributeError: V_PERCENTAGE 16-01-24 18:37:43 mysensors.mysensors: Error decoding message from gateway, probably received bad byte. -
I'm still trying to get this to work, with mixed results. Noticed on startup sometimes that HA was starting before my Serial port was initialized. Added a .timer file to delay the start of HA until the Pi is fully booted. Still having problems, but now i'm getting this in the HA logs:
16-01-24 18:37:40 homeassistant.core: BusHandler:Exception doing job Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 829, in job_handler func(arg) File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 302, in onetime_listener listener(event) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mysensors.py", line 104, in gw_start gateway.event_callback('persistence', node_id) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mysensors.py", line 226, in node_update callback(self, node_id) File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mysensors.py", line 165, in mysensors_callback add_devices(devices[node_id]) File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 81, in add_entities entity.update_ha_state() File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 108, in update_ha_state self.unit_of_measurement is not None: File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/mysensors.py", line 137, in unit_of_measurement self.value_type == self.gateway.const.SetReq.V_PERCENTAGE or \ File "/usr/lib/python3.4/enum.py", line 255, in __getattr__ raise AttributeError(name) from None AttributeError: V_PERCENTAGE 16-01-24 18:37:43 mysensors.mysensors: Error decoding message from gateway, probably received bad byte.I think you need to delete the persistence file and start over and present your sensors. You should do this while looking at the output from hass so you get feedback if it's working or not.
From the top of your log output there was a warning about bad byte from the gateway. The gateway started confirmation was never logged. You should see this before you start your sensors. If you don't get the gateway confirmation, try restarting home assistant.
Also in the log, the persistence file loaded sensor 2 and 3, but some data was missing, probably. There was a note about missing sketch name for one of the sensors.
You need to present the sensors properly, including sketch name and then send one value per sensor before they show up in the gui.
-
Hey @drock1985 , would you please update the thread if you are able to work around this ? I am experiencing something similar after my latest upgrade: None of the sensors appear in the UI. I have disabled persistence and removed the json files, and presented the nodes again, but still nothing appears. In debug mode I can see the messages from the Humidity sensor, for instance, but that's all.
-
Hey @drock1985 , would you please update the thread if you are able to work around this ? I am experiencing something similar after my latest upgrade: None of the sensors appear in the UI. I have disabled persistence and removed the json files, and presented the nodes again, but still nothing appears. In debug mode I can see the messages from the Humidity sensor, for instance, but that's all.
Hi @asm and @martinhjelmare
Still having issues after multiple restarts and two different nano's and NRF radios. I am like you, can see the messages but whatever I try I can't get rid of the bad byte error in the beginning.
Going to try a uno next and see if that changes anything.
-
Hi @asm and @martinhjelmare
Still having issues after multiple restarts and two different nano's and NRF radios. I am like you, can see the messages but whatever I try I can't get rid of the bad byte error in the beginning.
Going to try a uno next and see if that changes anything.
What version of pyserial do you have installed?
pip show pyserialTry version 2.5, which has been the least buggy for me.
pip3 install pyserial==2.5pip showwill not output anything if you have version 2.5 of pyserial installed.