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
KytrixK

Kytrix

@Kytrix
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Battery powered IR sender
    KytrixK Kytrix

    Ok, I was thinking that I could ask the state of the message S_LIGHT at every wake up,
    and if it changes, do my IR sending ...
    But it seems to not work.
    I guess for this, the problem is on the controller side, after send the command, without acknowledge , it give up and let the state of the button unchanged.

    Always on means power supply, This sensor must also get temperature, so I don't want to put it anywhere ...

    anyway thanks for you help :)

    Development slight gw.sleep infrared blaster

  • Battery powered IR sender
    KytrixK Kytrix

    Yes I know that for sleep mode,
    I also choose the relay sample to test purpose, I will not put a relay !
    Instead of switching a relay on or off, I want to send an IR code.

    Because I'm running on batterys, I do not want my node to always call gw.process() ! It will drain the battery quite full !

    That's why I was trying to do :

    void loop(){
    gw.process();
    gw.sleep(10000); //10s sleep
    }

    and what I was expecting :
    if a message was send from my controlelr (jeedom) during the sleep time,
    the gw.process() will retrive this missing message ... but it doesn't.

    How to do such function ? (save battery and receive message, even asynchronously)

    Thanks.
    Kytrix.

    Development slight gw.sleep infrared blaster

  • Battery powered IR sender
    KytrixK Kytrix

    Hi all !

    First message here !
    I'm very enjoing play with mysensors to build my own Home Automation devices !

    I have a question about creating a node powered on battery and sending IR codes !

    That means, I would like my sensor sleep for a while, and they get the status of the message.
    I don't need in this case a fast responce (few seconds is ok here).

    So First, I take the sample of the Relay, add a gw.sleep(10000) after process...
    but it doesn't work : after the sleep, the message was not received. (If I change state from my controller)
    I also try to reduce to 1s, but it's the same :/
    after gw.process, I try to call
    digitalWrite(RELAY_1, gw.loadState(1)?RELAY_ON:RELAY_OFF);
    same here : the state was not received :/

    Someone has a idea to do this ?
    (I mean receive a message from Gateway and sleep to keep battery) ?

    Kytrix.

    Development slight gw.sleep infrared blaster
  • Login

  • Don't have an account? Register

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