My goal is to hook up a DIY switch that I made to the Hue lights in my house through HASS.
My rough plan is to have it send messages to an appdaemon script via TCP. The script would then convert them to the message format appropriate for the lights. The switch will send a lot of data so I’m trying to avoid MQTT as I had issues with it in a similar application before.
I don’t exactly know the steps required to achieve this. Can you help me with this?
For example right now I have the following questions:
- Do I need to create a switch ‘component’ in HASS and then pipe the data from it to the appdaemon script? If so how do I do that?
- I know that MQTT is well supported in HASS, but what about straight TCP? How do I make the appdaemon script receive messages via TCP?