The event system supported by fibaroExtra has 3 levels.   Please login or register to see this image. /monthly_2021_07/layers.png.19435943d1287e3c3f0bfec339e165ce.png" />   1. We can register callbacks for the /refreshStates API. Instead of writing our own loop to poll the /refreshStates API we can do: Please login or register to see this code. The advantage here is that our handler function gets called whenever there is an event available. We get all events that the HC3 emits. T