Actuator on 1.5



  • Hi

    I got trouble using actuator with button.
    I'm using original "RelayWithButtonActuator" sketch from samples (I just replaced all V_LIGHT by V_STATUS and S_LIGHT by S_BINARY) and I can't set its value with command.
    Pushing the button turn it on perfectly and I receive message on gateway but i'm unable to set its value using command.
    Each time I pressed the button the same messages are received.

    For my tests I didn't any controller, just arduino IDE (with NL+CR enabled).

    Gateway output:

    0;0;3;0;9;read: 111-2-0 s=255,c=0,t=18,pt=0,l=3,sg=0:1.5
    111;255;0;0;18;1.5
    0;0;3;0;9;read: 111-2-0 s=255,c=3,t=6,pt=1,l=1,sg=0:2
    111;255;3;0;6;2
    0;0;3;0;9;read: 111-2-0 s=255,c=3,t=11,pt=0,l=14,sg=0:Relay & Button
    
    111;255;3;0;11;Relay & Button
    0;0;3;0;9;read: 111-2-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
    111;255;3;0;12;1.0
    0;0;3;0;9;read: 111-2-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
    111;1;0;0;3;
    <press button>
    0;0;3;0;9;read: 111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
    111;1;1;0;2;1
    <send command 111;1;1;0;2;1 (set value to 1)>
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
    <send command 111;1;1;0;2;0 (set value to 0)>
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0
    <send command 111;1;2;0;2; (request value)>
    0;0;3;0;9;send: 0-0-2-111 s=1,c=2,t=2,pt=0,l=0,sg=0,st=ok:
    

    Sensor output

    send: 111-111-2-0 s=255,c=0,t=18,pt=0,l=3,sg=0,st=ok:1.5
    send: 111-111-2-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:2
    repeater started, id=111, parent=2, distance=2
    send: 111-111-2-0 s=255,c=3,t=11,pt=0,l=14,sg=0,st=ok:Relay & Button
    send: 111-111-2-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
    send: 111-111-2-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
    <press button>
    send: 111-111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
    <send command 111;1;1;0;2;1 (set value to 1)>
    <nothing>
    <send command 111;1;1;0;2;0 (set value to 0)>
    <nothing>
    <send command 111;1;2;0;2; (request value)>
    <nothing>
    

    I added a log on the callback function "incomingMessage" (Serial.print("debug");) and it is never displayed.
    It's like the callback is never called .

    Any ideas?

    Thanks;-)



  • I investigated more and found my actuator message seems to be lost by repeater:

    2 is my repeater node
    and 111 is my actuator sensor

    <actuator started>
    0;0;3;0;9;read: 111-111-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-111-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    0;0;3;0;9;read: 111-111-0 s=255,c=0,t=18,pt=0,l=3,sg=0:1.5
    111;255;0;0;18;1.5
    0;0;3;0;9;read: 111-111-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
    111;255;3;0;6;0
    0;0;3;0;9;read: 111-111-0 s=255,c=3,t=11,pt=0,l=14,sg=0:Relay & Butto
    111;255;3;0;11;Relay & Button
    0;0;3;0;9;read: 111-111-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
    111;255;3;0;12;1.0
    0;0;3;0;9;read: 111-111-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
    111;1;0;0;3;
    <actuator pressing button ok>
    0;0;3;0;9;read: 111-111-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
    0;0;3;0;9;send: 0-0-111-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
    111;1;1;0;2;1
    <actuator pressing button ok>
    0;0;3;0;9;read: 111-111-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-111-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    <actuator pressing button ok>
    0;0;3;0;9;read: 111-111-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1
    0;0;3;0;9;send: 0-0-111-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1
    111;1;1;0;2;1
    <actuator pressing button failed>
    0;0;3;0;9;read: 111-111-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-111-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=fail:0
    111;1;1;0;2;0
    <actuator pressing button failed>
    0;0;3;0;9;read: 111-111-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-111-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=fail:0
    111;1;1;0;2;0
    <actuator pressing button failed>
    0;0;3;0;9;read: 111-111-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;0;3;0;9;send: 0-0-111-111 s=255,c=3,t=8,pt=1,l=1,sg=0,st=fail:0
    0;0;3;0;9;read: 111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    0;0;3;0;9;read: 111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    <actuator restarted>
    0;0;3;0;9;read: 111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    0;0;3;0;9;read: 111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    0;0;3;0;9;read: 111-2-0 s=255,c=0,t=18,pt=0,l=3,sg=0:1.5
    111;255;0;0;18;1.5
    0;0;3;0;9;read: 111-2-0 s=255,c=3,t=6,pt=1,l=1,sg=0:2
    111;255;3;0;6;2
    0;0;3;0;9;read: 111-2-0 s=255,c=3,t=11,pt=0,l=14,sg=0:Relay & Button
    
    111;255;3;0;11;Relay & Button
    0;0;3;0;9;read: 111-2-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
    111;255;3;0;12;1.0
    0;0;3;0;9;read: 111-2-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
    111;1;0;0;3;
    0;0;3;0;9;read: 1-2-0 s=1,c=1,t=39,pt=1,l=1,sg=0:2
    1;1;1;0;39;2
    0;0;3;0;9;read: 111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    0;0;3;0;9;read: 111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    0;0;3;0;9;read: 111-2-0 s=1,c=1,t=2,pt=2,l=2,sg=0:0
    0;0;3;0;9;send: 0-0-2-111 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:0
    111;1;1;0;2;0
    

    My gateway is on my office that have thick walls. For this reason i'm using a repeater with NRF with antenna (like my gateway)
    So most of my sensors outside the office need to connect to repeater to access gateway.
    In the sample below, the actuator succeed to connect to gateway at the beginning but after some button press, it doesn't handle to send its value. When i restarted the actuator, it connects to repeater and nothing works.

    Gateway and actuator sketches are those i found on mysensors library examples, repeater node is based on library example but have a led that blinks periodically and each 10 minutes, repeater send its sketch name.


  • Hardware Contributor

    The liberary was updated 10 days ago due to messages getting stuck between gw and repeater. Do you have the latest build 1.5?

    http://forum.mysensors.org/topic/1799/repeater-nood-keeps-looping-and-doesnt-reach-gw



  • I thought i was using the latest 1.5 version but it seems not.
    Uploading all my sketches with fresh downloaded version fixed my pb.

    Thx sundberg84 😉


Log in to reply
 

Suggested Topics

  • 3
  • 24
  • 10
  • 4
  • 2
  • 3

25
Online

11.2k
Users

11.1k
Topics

112.5k
Posts