I’m trying to learn something about generating automation xiaomi devices in hassio/nodered but it is very difficult. I cannot create a single flow.
I watched few YT videos and does not understand how to make a simple automation.
eg.
I also have Xiaomi switches and these are also read via an automation in HA. In general, I have the feeling that a “direct” automation in HA is more stable than a flow in Node-RED, but maybe it’s just my feeling. I tried to create a tutorial for you. Maybe it will take you further. I have not installed the “Xiaomi Palette” and I do not need it.
On the first picture you can see an overview of the complete flow.
Maybe this will help you! There may be an easier way, but that’s the way it works. If a simpler or better way is shown here, I am also trying to try and learn something new. I am not a professional and have received much help here in the forum …
Good luck!!!