I’ve had HomeAssistant on the standalone OS (was HassOS) on a raspberry pi for some years now. I have many zwave sensors happily telling me about power draw and light levels and occupancy.
I got a Samsung Frame TV and it does not work well. I had put it on a separate vlan and actually logged in to the thing and was going to use it as designed … except it doesn’t stay logged in, so it constantly displays the base art. Plus it actually blocks communication from separate vlans. Super annoying design.
So I moved it to my local vlan that has HomeAssistant and I’m simply blocking the TV from calling the mothership. It has an API, I can literally call it with python, load my own scripts, and get around all their a**hole design and make it do what I want.
I WANT to use Homeassistant to tell me when the power consumption of the TV indicates it’s actually showing TV or art, and whether the room is light or dark, so I can tell the TV if it needs to flip into art mode and what to display.
I’ve got pyscript working, but I need it to import a library to talk to the TV API.
I think because I’m on HassOS, I can’t actually install a library where it’ll be available to me within HA. I need to run “pip3 install samsungtvws[async,encrypted]”, and that seems to be a no-go.
Long term I think I will probably move to a fuller machine with HA running on it, but I wanna make my TV work NOOOOWWW…
So, I can call my script from another machine, but I want to access values that only HomeAssistant knows about.
Can I get HomeAssistant to share the values of my sensors in a nice, maybe restful, way? Trying to look it up and these terms are just too generic, so I’m looking here for someone to hopefully point me at this. Betting HA would love to share those values with me if I just knew how to talk to it from an external script on another box, same vlan. Then I can run it on the other machine until I get around to hosting HA another way.
Thank you!