Detect change of state on switch



  • Hi Folks,
    This might very well be a question more suited to the MySensors forums, but I figured I'd ask here as well, just in case anyone else has already found a solution.

    I have a steel frame house, and dragging new cabled through the wall is a nightmare. Because of this I was hoping to re-use my existing rocker switches used for my lights etc.

    Rather than having a set action for open and short (which would limit the use if a light was turned on via a phone or automated process) I was hoping to detect a change in state and use that to trigger an operation.

    If anyone has any info on this and might be able to point me in the right direction, I'd be greatly appreciative.

    Cheers!

    Z


  • MOD

    Hi!

    Why not use remote controlled outlets? In Europe we got the 433mhz rc outlets,
    Simply make a node which is able to controll the outlets and have mycontroller operate them.

    Another solution might be using an LDR per lamp (or part of the room) to measure the light intensity.

    Measure you power usage on your electricity meter....

    Hope this helps!

    Kind regards,

    Tag



  • the lights I want to control don't have an outlet! I might end up having to create a connection point, and it might be possible to use a 433mHz controller relay at that point, worth looking into.

    I'd still need to detect the change of state at the switch on the wall, so I could retain the original usability of the light switches, rather than having to carry around a 20ch remote when in the house!


  • MOD

    @zachflem

    Not sure which lights or switches you use, maybe you are able to request the state of the light. If this is not possible, the only way to see if the light is on of off is using an LDR, or Lux sensor..



  • @tag said in Detect change of state on switch:

    @zachflem

    Not sure which lights or switches you use, maybe you are able to request the state of the light. If this is not possible, the only way to see if the light is on of off is using an LDR, or Lux sensor..

    I don't think I'm explaining myself very well. I don't want the state of the light, I want to detect when someone alters the state of the SWITCH, so that I can convert my existing switches, into smart input, and assign them to different things via rules.

    The switch should have no defined ON or OFF state, only a trigger that says "hey the switch changed"

    I hope that makes a little more sense.


  • MOD

    @zachflem

    Ah... so if i understand correctly, you basically need a scipt that monitors the switch variables in mycontroller?


 

Suggested Topics

11
Online

392
Users

365
Topics

2.2k
Posts