Navigation

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

    Best posts made by diltech

    • RE: mysprinkler for mysensor and home assistant not working together

      Hi,

      You can fix variable with sending data. In the firmware, you must add this function for place value in this V_VARx

      So, place this function into your setup firmware.

      Where in this case

      MyMessage var1valve(CHILD_ID_SPRINKLER, V_VAR1);
      MyMessage var2valve(CHILD_ID_SPRINKLER, V_VAR2);
      

      This loop repeat for each relay (i) and you can set any value at the end (1) for one minutes and (5) for five minutes.

      That's all.

      void goInitiateValveTime() {
        for (byte i = 0; i <= NUMBER_OF_VALVES; i++)
        {
          send(var1valve.setSensor(i).set(1));
          wait(50);
          send(var2valve.setSensor(i).set(5));
        }
        wait(50);
        lastValve = -1;
      }
      

      Refresh Home Assistant just after run one time your script and value appear in your persistence file.

      Regars,

      posted in Home Assistant
      diltech
      diltech