Push Button state not synced

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
hchris
New user
Posts: 1
Joined: 11 Nov 2017, 15:48

Push Button state not synced

#1 Post by hchris » 11 Nov 2017, 16:03

Hello everyone,

I'm completely new to world of IoT so it could be the case that my question has been asked a couple of times. However, I didn't manage to find a working answer.
I have a Raspberry Pi running Openhab2 and an ESP with ESPEasy. For Testing I connected a Button to the ESP. It works perfectly and I can see that it is toggling on the Openhab Web interface.
Unfortunately pressing the switch on the web interface causes trouble. When I press the button connected to the ESP again, it won't toggle the first time (It sends a 1 or 0 but the value has changed before by the Openhab UI).
I had the idea to trigger an event everytime you press the switch on the web interface so that the ESP thinks it gets pressed.
I found a method called inputswitchstate but it didn't have any effect.

Anyone who solved the problem?

Thanks in advance and sorry if the description is not precise enough :)

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: Push Button state not synced

#2 Post by vader » 11 Nov 2017, 18:04

Screen shots of your config, a log and the rules would be helpful to know....

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

Re: Push Button state not synced

#3 Post by grovkillen » 11 Nov 2017, 21:15

I suspect that you try to "press" the button through HTTP but this is not the way you do stuff like that. You would make an event in rules. An event is possible to trigger using pretty much anything. By pressing a button, sending a command through HTTP, the time of day .,.. etc.

But to know what you intend to do you need to give us more information. A set of screenshots is a good start, as Vader already suggested.
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:

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 12 guests