I think if I write down what is happening, it might help us figure out whats happening so originally before I edited any items I had 2 outbound command messages coming from My openhab to the Hestia Pi and one inbound message for the state . On the hestia Pi I had 2 outbound command messages and one inbound State message so both exactly the same .
from openhab to HestiaPI
UI pressed on openhab
outbound ON/OFF command sent via mqtt to HestiaPI
state change on HestiaPI but nothing happens as its not a command
HestiaPi UI has no change
I believe that the UI state wasn’t changed because as I say the sitemap item is heatingMode and this updates heatingpin23 via rules, in reverse HeatingMode’s state is never changed should heatingPin23 receive a command .
from HestiaPi to openhab
UI pressed on HestiaPI (habpanel/BasicUI)
outbound ON/OFF command sent via mqtt to openhab
state change on Openhab Item
UI changed to OFF/ON
I believe that the UI changed because its the same item that sends and receives messages and the same item linked in the sitemap.
now when I edit HestiaPi’s Heatingpin23 item to listen for inbound commands for ON/OFF really I should have an outbound message that sends a change in state but this causes a loop as I’ll show
from openhab to HestiaPi
UI pressed on Openhab
outbound ON/OFF message sent via mqtt to HestiaPi
Command received on HestiaPi, item Heatingpin23 and Heating relay activates
as item has chnaged state this causes the state outbound message to send to openhab
state message received on openhab and item state is updated this causes the outbound command message to trigger and ON/OFF is sent to HestiaPI
continous loop created
currently, so I don’t cause the relays to fail I have HestiaPi item listening for inbound commands on heatingPin23 and no outbound message sent until I can work out how to do this without causing a loop
but as I say I can control the heating from the HestiaPi itself via the Habpanel/BasicUI or the the openhab app on my phone. What I want it to do is If an ON/OFF command is sent to to the HestiaPi it updates openhab’s ON/OFF switch and the Habpanel item shows ON/OFF as well . Also if I press ON/OFF on HestiaPi it updates the openhab to show the new ON/OFF state as well.
Regarding an amp meter I have a multi meter but how good it is for what measurements you require I not sure, is this any Good?
I think your solution about using a rule to see if HeatingPin23 has a state change and updating the UI might be the option