Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Richard van der Plas
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Richard van der Plas

    @Richard van der Plas

    9
    Reputation
    85
    Posts
    647
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Richard van der Plas Follow

    Best posts made by Richard van der Plas

    • RE: 💬 Building a Raspberry Pi Gateway

      NM, used GPIO numbers instead of Pin numbers RTFM 🙂

      posted in Announcements
      Richard van der Plas
      Richard van der Plas
    • RE: MySensors Gatway dimmers & Home assistant

      @martinhjelmare ok ill wait,
      meanwhile splitted the Message.type== V_LIGHT & == V_DIMMER into 2 different ifs.
      created a quick serial.println on the vlight, and see in my HASS that indeed changing the dim level on the led when off , triggers a v_light and turns it to 100%
      -Update indeed when removing the V_LIGHT message type behaviour is okay, but im unable to turn off the light

      • Following code is now testing:
      if ((message.type == V_LIGHT) && message.sensor==1) {
              int requestedLevel = atoi( message.data );
             Serial.print("message:"); 
             Serial.println(requestedLevel);
             Serial.print("VLIGHT DETECTET set to:"); 
             requestedLevel *= ( message.type == V_LIGHT ? 100 : 1 );
             Serial.println(requestedLevel);
             if (requestedLevel <1) {fadeWhiteToLevel( requestedLevel );}
          }
      

      Behaviour is better now
      only issue i now have is the 255 values of arduino to the 100 of HASS ,

      posted in Hardware
      Richard van der Plas
      Richard van der Plas
    • RE: New CHILD ID after reprogramming

      @gohan said in New CHILD ID after reprogramming:

      #define MY_NODE_ID 5

      aha MY_NODE_ID, instead of CHILD_ID 👍

      posted in Troubleshooting
      Richard van der Plas
      Richard van der Plas
    • RE: 💬 Building a Raspberry Pi Gateway

      Moved to normal troubleshooting forum

      posted in Announcements
      Richard van der Plas
      Richard van der Plas
    • RE: Buy big amount of Arduino nano with FTDI

      ive good good experience with the BAITE online store, fast shipping and offering a price by 10

      posted in Hardware
      Richard van der Plas
      Richard van der Plas
    • RE: Sleep issue

      @Yveaux Ok went to 2.0 and that indeed works

      posted in Troubleshooting
      Richard van der Plas
      Richard van der Plas
    • RE: New Sensor node doesn't show up in HA

      damn i think i found the issue, the presentation uses V_TRIPPED, that should be S_MOTION or S_DOOR, gonna try that tommorrow
      update 21-11, it indeed was the V_TRIPPED vs S_DOOR.

      posted in Home Assistant
      Richard van der Plas
      Richard van der Plas
    • RE: 💬 Building a WiFi Gateway using ESP8266

      seems to work again indeed, had to flash something empty first.

      posted in Announcements
      Richard van der Plas
      Richard van der Plas
    • RE: Home assistant triggers a mysensor light, nothing happens

      @martinhjelmare changed the antennas again for another design, and send the level to max, and today it seems to be stable.
      Proof is in the pudding, he needs to control my aqarium lights twice a day. that's the one thats missing.
      al my sensors are power with power regulators, so that should be good.
      if the issue is persisent, i will try further.

      posted in Troubleshooting
      Richard van der Plas
      Richard van der Plas

    Latest posts made by Richard van der Plas

    • RE: 💬 Building a WiFi Gateway using ESP8266

      I have some strange issues with my ESP8266 Wifi gateway and NRF24L01 connection.
      All goes well for a day or so or sometimes 3, but than the WiFi communication stops, rebooting my WiFi access point solves the problem.
      It shouldn't be a DHCP issue, because that is handled through the firewall, so it must be something else. Problem is i cannot see what goes wrong, because i don't have a log anywhere on the device?
      What could be the best steps to solve or find the issue ?

      posted in Announcements
      Richard van der Plas
      Richard van der Plas
    • RE: 💬 Building a WiFi Gateway using ESP8266

      seems to work again indeed, had to flash something empty first.

      posted in Announcements
      Richard van der Plas
      Richard van der Plas
    • RE: 💬 Building a WiFi Gateway using ESP8266

      HI there, i have been using this code a while, but had to made some changes in my wifi connection info (because it seems that my Domotica controller couldnt command the gateway), but after a failed flash, i have managed to flash it again correctly, but it doesnt seem to connect to the gateway anymore, how can i check this? it wouldnt respond on a ping and i see no wifi connection in de serial log?

      posted in Announcements
      Richard van der Plas
      Richard van der Plas
    • RE: MySensor nodes powering on with Dusk / Dawn Garden lights issue

      @nca78 said in MySensor nodes powering on with Dusk / Dawn Garden lights issue:

      before()
      so i need to create like :

      void before();
      {
      delay(2500);
      }
      
      
      posted in Development
      Richard van der Plas
      Richard van der Plas
    • MySensor nodes powering on with Dusk / Dawn Garden lights issue

      I have converted some of my garden lights (not the pond lights because of the water 😉 ) to Mysensor lights with NeoPixels with different nice settings (color alarm etc). Thing is these are powerd by the 12V power lines running through the garden. This 12V system turns on @ dusk for a few hours (because they power the analog lights also). This results in 6-8 nodes booting at the same time, thus flooding the gatway with messages (presentation, getting the last state & color etc).
      The last i can fix by creating a few second wait different for all nodes, but i cannot find a option to delay the presentation and the whole bootup part of the nRF24L01 radio part.
      i found #define MY_TRANSPORT_WAIT_READY_MS but is this really working?
      i tested with the line:

      #define MY_TRANSPORT_WAIT_READY_MS 5000
      

      but didn't seem to delay / wait?

      posted in Development
      Richard van der Plas
      Richard van der Plas
    • RE: New Light is not shown in HASS

      issue seems the version number, which in 2.2 is a text string (Major releas bladiebla) that messes with the json file somehow

      posted in Home Assistant
      Richard van der Plas
      Richard van der Plas
    • New Light is not shown in HASS

      after uploading the code to a 5th node of the same code, the node is not seen in HASS,
      Debug log shows the first set section of the code is working:

      Mar 24 16:59:22 raspberrypi mysgw: GWT:RFC:C=1,MSG=14;255;3;0;6;M
      Mar 24 16:59:22 raspberrypi mysgw: TSF:MSG:SEND,0-0-14-14,s=255,c=3,t=6,pt=0,l=1,sg=0,ft=0,st=OK:M
      Mar 24 16:59:22 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=255,c=3,t=11,pt=0,l=8,sg=0:TuinLamp
      Mar 24 16:59:22 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.5
      Mar 24 16:59:23 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=1,c=0,t=27,pt=0,l=0,sg=0:
      Mar 24 16:59:24 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=2,c=0,t=4,pt=0,l=0,sg=0:
      Mar 24 16:59:26 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=3,c=0,t=3,pt=0,l=0,sg=0:
      Mar 24 16:59:28 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
      Mar 24 16:59:28 raspberrypi mysgw: TSF:MSG:SEND,0-0-14-14,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
      Mar 24 16:59:29 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=3,c=1,t=2,pt=2,l=2,sg=0:0
      Mar 24 16:59:30 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=2,c=1,t=2,pt=2,l=2,sg=0:0
      Mar 24 16:59:30 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=2,c=1,t=3,pt=2,l=2,sg=0:0
      Mar 24 16:59:30 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=1,c=1,t=41,pt=0,l=8,sg=0:00000000
      Mar 24 16:59:30 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=1,c=1,t=2,pt=2,l=2,sg=0:0
      Mar 24 16:59:30 raspberrypi mysgw: TSF:MSG:READ,14-14-0,s=1,c=1,t=3,pt=2,l=2,sg=0:0
      

      Home assistant log shows:

      Mar 24 17:07:22 raspberrypi hass[449]: #033[33m2018-03-24 17:07:22 WARNING (Thread-23) [mysensors] child_id 1 already exists in children of node 14, cannot add child#033[0m
      Mar 24 17:07:23 raspberrypi hass[449]: #033[33m2018-03-24 17:07:23 WARNING (Thread-23) [mysensors] child_id 2 already exists in children of node 14, cannot add child#033[0m
      Mar 24 17:07:24 raspberrypi hass[449]: #033[33m2018-03-24 17:07:24 WARNING (Thread-23) [mysensors] child_id 3 already exists in children of node 14, cannot add child#033[0m
      Mar 24 17:09:03 raspberrypi hass[449]: Exception in thread Thread-23:
      Mar 24 17:09:03 raspberrypi hass[449]: Traceback (most recent call last):
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
      Mar 24 17:09:03 raspberrypi hass[449]:     self.run()
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/srv/homeassistant/lib/python3.5/site-packages/mysensors/gateway_tcp.py", line 180, in run
      Mar 24 17:09:03 raspberrypi hass[449]:     response = self.handle_queue()
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/srv/homeassistant/lib/python3.5/site-packages/mysensors/__init__.py", line 374, in handle_queue
      Mar 24 17:09:03 raspberrypi hass[449]:     reply = func(*args, **kwargs)
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/srv/homeassistant/lib/python3.5/site-packages/mysensors/__init__.py", line 202, in logic
      Mar 24 17:09:03 raspberrypi hass[449]:     ret = self._handle_set(msg)
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/srv/homeassistant/lib/python3.5/site-packages/mysensors/__init__.py", line 101, in _handle_set
      Mar 24 17:09:03 raspberrypi hass[449]:     msg.child_id, msg.sub_type, msg.payload)
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/srv/homeassistant/lib/python3.5/site-packages/mysensors/__init__.py", line 519, in set_child_value
      Mar 24 17:09:03 raspberrypi hass[449]:     msg.validate(self.protocol_version)
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/srv/homeassistant/lib/python3.5/site-packages/mysensors/__init__.py", line 634, in validate
      Mar 24 17:09:03 raspberrypi hass[449]:     const = get_const(protocol_version)
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/srv/homeassistant/lib/python3.5/site-packages/mysensors/__init__.py", line 32, in get_const
      Mar 24 17:09:03 raspberrypi hass[449]:     if parse_ver('1.5') <= parse_ver(version) < parse_ver('2.0'):
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/usr/lib/python3.5/distutils/version.py", line 52, in __lt__
      Mar 24 17:09:03 raspberrypi hass[449]:     c = self._cmp(other)
      Mar 24 17:09:03 raspberrypi hass[449]:   File "/usr/lib/python3.5/distutils/version.py", line 337, in _cmp
      Mar 24 17:09:03 raspberrypi hass[449]:     if self.version < other.version:
      Mar 24 17:09:03 raspberrypi hass[449]: TypeError: unorderable types: str() < int()
      

      and the mysensors.json file has node 14 in its list, but HASS wont show it in the states list or the made groups.yaml ?
      the other nodes didn't have that issue.

      posted in Home Assistant
      Richard van der Plas
      Richard van der Plas
    • RE: 💬 Building a Raspberry Pi Gateway

      Was pointed here from another post, having serious issues with high CPU utilization op the gateway, is there any workaround and the moment?

      top:

      asks: 157 total,   2 running, 155 sleeping,   0 stopped,   0 zombie
      %Cpu(s):  2.5 us, 23.0 sy,  0.0 ni, 74.3 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st
      KiB Mem :   949580 total,   448732 free,   146912 used,   353936 buff/cache
      KiB Swap:   102396 total,   102396 free,        0 used.   737656 avail Mem 
      
        PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                         
        337 root      20   0   20492   1060    932 R 100.0  0.1  28:54.55 mysgw                                                                                                                                           
       3947 pi        20   0    8248   3324   2736 R   1.6  0.4   0:00.82 top                                                                                                                                             
        447 homeass+  20   0  340112  63684   9916 S   1.0  6.7   3:28.71 hass                                                                                                                                            
          7 root      20   0       0      0      0 S   0.3  0.0   0:04.18 rcu_sched                                                                                                                                       
        767 root      20   0  126572   8628   6544 S   0.3  0.9   0:00.95 piplight-daemon                                                                                                                                      
      
      PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
      NAME="Raspbian GNU/Linux"
      VERSION_ID="9"
      VERSION="9 (stretch)"
      Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
      

      Rebooting the pi sometimes helps, sometimes freezes the pi
      seeing nothing strange in the mysensors log what so ever
      running MySensors Version 2.2.0
      and Home Assistant Version 0.64.0
      Anyone can point me in the direction where to troubleshoot this further ?
      its not a high traffic gateway (around 10 sensors connected of which 5 updating every 15 minutes)

      posted in Announcements
      Richard van der Plas
      Richard van der Plas