Switch: can I send state only when changed?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Switch: can I send state only when changed?

#1 Post by manjh » 09 Oct 2017, 13:54

I have a rain sensor attached to one of my ESP units. It is configured as switch, and works OK.
The only problem is that it's state is transmitted to Domoticz periodically, regardless of state change.
I would prefer to have a transmission done only when the switch changes state!
Is this possible?

This is the current device configuration:


Schermafdruk 2017-10-09 13.52.47.png
Schermafdruk 2017-10-09 13.52.47.png (93.13 KiB) Viewed 2368 times

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Switch: can I send state only when changed?

#2 Post by grovkillen » 09 Oct 2017, 13:58

Put delay to "0", and it will only be sent when changed. It is even stated that the delay is optional (see you own screenshot). More info is found on the wiki.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: Switch: can I send state only when changed?

#3 Post by manjh » 09 Oct 2017, 15:43

Ah, great when a solution is that simple....

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests