When a Tradfri Bulb gets disconnected from the power line (by pressing the wall switch), it randomly happens, that the gateway itself looses connection to the bulbs. So the bulb isn’t controllable through openhab anymore. It remains in its last state and commands aren’t passed to the bulb anymore (all without any error in the logs). Restarting the binding didn’t resolve the problem, but restarting the gateway fixes it.
Google told me that it is possible to restart the gateway over the network:
coap-client -m post -u “Client_identity” -k " key " “coaps://192.168.178.71:5684/15011/9030”
Is it possible to execute the coap command with some tools of openhab (script, http binding, or whatever)?
Or even better: it is possible to add a channel to the binding that provides a switch to restart the gateway?
So it would by possible to restart the gateway every night, to revivify all bulbs that might got lost over the day.
Thanks in advance!