pimatic / pimatic-homeduino

Pimatic plugin for using 433mhz devices and sensors with a connected Arduino with homeduino sketch
https://pimatic.org/
GNU General Public License v2.0
37 stars 29 forks source link

on/off events independent of current state #51

Closed thexperiments closed 8 years ago

thexperiments commented 8 years ago

Would it be possible to always trigger the on event for a switch even if the state currently is already on? Same for off. Example: I have RF wall switches on both sides of the room. I turn it on on one side of the room and want to turn it off on the other side of the room but current state of this switch offs already off. Currently I can see that off is received but nothing happens in the rule which uses "if switch2 is turned off..." Maybe this could also be a general functionality for all switch type devices in pimatic.

Icesory commented 8 years ago

For the receive event you must use "if switch2 receive on then... " This event is always triggered and is independent of the state of the switch.

thexperiments commented 8 years ago

Great! You can close this one, works like a charm. We should put some chat sheet/help link into the rule dialog. I'm using pimatic quite long now and didn't know about this.

Icesory commented 8 years ago

You are right, the Homeduino readme lacks every aspect of rules. So I think we should add this.