Maartenc wrote:
... When I toggle a light with an actual physical button, I want to update the status of the switch in domoticz without executing the scripts. ...
I suggest adding a new dummy switch and use that switch as a slave to the original dummy switch. Let me be a bit more specific.
I have dummy switch 1 and dummy switch 2. Dummy switch 1 is configured with an On Action and an Off Action, it turns dummy switch 2 On and Off with a json command. So when you press this dummy switch 1 On, the On Action script is executed and dummy switch 2 is set to On also.
Create a dummy switch 3. Then go back to dummy switch 1 and under Sub/Slaves add the dummy switch 3. Now when you switch dummy switch 3 to On, also dummy switch 1 will be set to On but the On Action script is NOT executed, so dummy switch 2 is NOT set to On.
Update your second step "PI detects the push of the button and updates the status of the switch in domoticz via json" by changing the IDX to the new dummy switch 3.
Could this be a solution?