Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. mirko314
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    mirko314

    @mirko314

    0
    Reputation
    10
    Posts
    431
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    mirko314 Follow

    Best posts made by mirko314

    This user hasn't posted anything yet.

    Latest posts made by mirko314

    • RE: Home Assistant v 0.11.1 with switch support

      @martinhjelmare
      Would you mind to elaborate a bit more?
      I am not sure how to alter the script.

      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      Sorry, I forgot to ask, is it implemented yet? 😄
      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.

      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      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.ino

      Even 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```
      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      Nice!
      Thank you, I installed it, works like a charm!
      Going to try a HA switch tomorrow!
      Are 1-Wire Components like AM2301 Temp-Sensor already supported?

      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      Alright then, I started to feel a bit dumb 😄
      If you need any help let me know!
      Thank you for looking into the issue 👍

      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      The Whole log is:
      screenlog.txt
      The Sketch is:
      BinarySwitchSensor.ino
      The Sketch was not modified and should be the same as the one of the MYS download Page.

      Do I maybe have to add anything to my config.yaml besides the plattform thing?

      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      @martinhjelmare
      I Changed the Version, yet there is nothing added to the dashboard.
      I used the sample BinarySwitch example sketch of MYS. The Sensor Arduino has a button connected to Pin 3.
      I'm relativly new here so maybe I missed something. And I don't know what Values you mean.

      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      @martinhjelmare
      Got that worked out, changed the Name in the Persistence File that HA created! 👍
      But it still does not show up.
      HA Log:

      INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=3,c=1,t=16,pt=2,l=2,sg=0: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=3,c=1,t=16,pt=2,l=2,sg=0: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=3,c=1,t=16,pt=2,l=2,sg=0: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=3,c=1,t=16,pt=2,l=2,sg=0:0
      INFO:homeassistant.components.mysensors:update sensor_update: node 1
      

      Persistence File:

      {"1": {"sketch_version": null, "children": {"3": {"type": 0, "values": {"16": "0"}, "id": 3}}, "sketch_name": "testgateway", "battery_level": 0, "sensor_id": 1, "type": 17}}
      
      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      @martinhjelmare
      Thank you!
      Seems to Load now 🙂
      I disabled persistence because I did not seem to need it right now.
      I am getting the following log when I Push the Wireless Button, it seems to work.
      But I dont see any now nodes / Sensor on the Dashboard. Did I forget something?

      INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=3,c=1,t=16,pt=2,l=2,sg=0:1
      INFO:homeassistant.components.mysensors:update sensor_update: node 1
      INFO:homeassistant.components.mysensors:No sketch_name: node 1
      INFO:homeassistant.components.mysensors:No sketch_name: node 1
      INFO:mysensors.mysensors:n:0 c:0 t:3 s:9 p:read: 1-1-0 s=3,c=1,t=16,pt=2,l=2,sg=0:0
      INFO:homeassistant.components.mysensors:update sensor_update: node 1
      INFO:homeassistant.components.mysensors:No sketch_name: node 1
      INFO:homeassistant.components.mysensors:No sketch_name: node 1
      
      posted in Home Assistant
      mirko314
      mirko314
    • RE: Home Assistant v 0.11.1 with switch support

      Hi,
      I installed Home-assistant and Setup a MySensor SerialGateWay + MySensor Switch.
      Yet when I start HA It shows this Error:

      16-01-18 17:27:38 homeassistant.components.mysensors: Missing required configuration items in mysensors: gateways
      16-01-18 17:27:38 homeassistant.bootstrap: component mysensors failed to initialize```
      

      Config:

      mysensors 1:
        gateways:
          - port: '/dev/ttyUSB0'
            persistence_file: 'hass_log/mysensors.json'
        debug: true
        persistence: true
        version: '1.5'
      
      posted in Home Assistant
      mirko314
      mirko314