Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
D

diltech

@diltech
About
Posts
11
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • mysprinkler for mysensor and home assistant not working together
    D diltech

    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,

    Home Assistant
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular