Wow thank you so much.
I've cleared the eeprom and now it gets node id 1. After removing the persistence file the sensor now shows on the web interface.
Wow thank you so much.
I've cleared the eeprom and now it gets node id 1. After removing the persistence file the sensor now shows on the web interface.
Hi, I also struggle with the presentation of my sensors.
I've installed HA 0.18.2 over pip. My config on a raspberry pi looks as follows:
...
sensor:
platform: mysensors
mysensors:
gateways:
- device: '/dev/ttyUSB0'
persistence_file: '/home/pi/.homeassistant/mysensors.json'
baud_rate: 115200
debug: true
persistence: true
version: '1.5'
optimistic: false
On HA startup I get:
INFO:mysensors.mysensors:Trying to connect to /dev/ttyUSB0
INFO:homeassistant.components.http:Starting web interface at http://0.0.0.0:8123
INFO:homeassistant.core:Timer:starting
INFO:mysensors.mysensors:/dev/ttyUSB0 is open...
INFO:mysensors.mysensors:Connected to /dev/ttyUSB0
INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 -
INFO:netdisco.service:Scanning
INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 -
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:gateway started, id=0, parent=0, distance=0
I've set up a node with the orginal Binary-Sensor example from https://home-assistant.io/components/binary_sensor.mysensors/.
If I power the node up, I get in the log:
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 0-0-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 0-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0:1.5.4
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 0-0-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:read: 0-0-0 s=255,c=3,t=11,pt=0,l=12,sg=0:BinarySensor
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 0-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 0-0-0 s=1,c=0,t=0,pt=0,l=0,sg=0:
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 0-0-0 s=1,c=1,t=16,pt=2,l=2,sg=0:0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
and if I push the button on the node I get:
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 0-0-0 s=1,c=1,t=16,pt=2,l=2,sg=0:1
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 0-0-0 s=1,c=1,t=16,pt=2,l=2,sg=0:0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
INFO:homeassistant.components.mysensors:No sketch_name: node 0
So for me it looks like everything is working, but the sensor dont show up on the web interface.
What am I missing?
I'm still stuck with the import of sensors to home-assitant. Can someone please post his configuration.yaml? I Wonder if I made a stupid configuration error there.
Do I need the "inclusion mode" of the Gateway or does home-assistant handle the detection of new sensors? In the serial monitor all the communication between the nodes and the Gateway is looking good, but in home-assistant they won't show up.
I've used the example sketches for both, the gateway and the sensor. I think the node id is set to 1 in the example.
The main problem is, that I dont know how to test the serial communication between home assistant and the gateway. I have the debug option enabled and I can see the inclusion of the mysensor plugin in the logs at start up. But after that nothing happens.
Thanks for the detailed response.
I noticed, that only version 1.4 is loaded in the mysensors-plugin so far. (https://github.com/balloob/home-assistant/blob/dev/homeassistant/components/sensor/mysensors.py#L37). I wonder if this may be a problem as I used the new 1.5.
Hi,
I'm trying to set up home assistant (http://home-assistant.io) with the MySensors infrastructure. I've configured the mysensor-part in the configuration.yaml. But I dont know how the proceed. How can my sensors now be recognized. Is there a way to debug the communication between HA and the serial gateway?
I've used the example scetches for the serial gateway and a motion sensor. At startup of the serial Gateway I start the inclusion mode and then power up the motion sensor. If the gateway is connected to my computer I can see the messages from the motion sensor. But if I plug the serial Gateway to the Raspberry on which home assistant is running on, nothing happens. Even on the console ouput and in the logs of HA are no errors or warnings.