-
Platform information:
- Rpi3
- openHABianPi 7.05.170509
- openHAB version: 2.1.0-1
-
Issue of the topic:
I’m hoping I can have the software switch in the sitemap update when a physical switch is pressed.
I’m using the latest version of ESP_Easy I have a ESP12f controlling a relay using http commands through openhab.
Through the ESP_Easy interface I have a physical push button connected to toggle the relay manually and send the state of the relay to Openhab via MQTT. Everything is working except when I push the physical switch the software state is not updated on the sitemap. -
Please post configurations (if applicable):
- Items configuration related to the issue
I believe I need to setup a MQTT subscribe in my item bindingconfig on my item but since I’m using http binding config can I still use MQTT on the same item?
- Items configuration related to the issue
Switch Lamp1 "Living Room Lamp" <poweroutlet_us> (SmartItems) {http=">[ON:POST:http://10.240.195.42/control?cmd=GPIO,5,1:on] >[OFF:POST:http://10.240.195.42/control?cmd=GPIO,5,0:off]"}
- Sitemap configuration related to the issue
Frame label="SmartPlugs"{
Switch item=Garage_Door mappings=[ON="GO!"]
Switch item=Lamp1
}
- Rules code related to the issue
I don’t currently have any Rules for this item.