@Yveaux do you also use Grafana in order to visualize the data? I am not sure what fields/attributes are necessary despite "time" and "value" for a binary sensor.
@jkandasa
Thank you for the update. I will use this controller in production in few days. Eactly what I want. For non-msensors devices I Will use node-red as glue !