Greeting,
I’m trying to integrate a controller that has only usb-tty
communication to home assistant.
I have class that gets data from tty
and parses it to list.
What bothers me is that I have to send request for every value in list. Meaning if device has 10 sensors, there will be 10 serial port queries. Due to slow nature of my controller, it seems like bad practice.
Is there a way to get data list once and parse it to sensors already in homeassistant?
Last but not least, it would be greatly appreciated if there is a good example how to implement switch and sensor in one integration. I.e. temperature controller has both thermometer and other stuff for sensor and control circuit for switch.
Thanks in advance.