You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I was bashing my head at this for easily like 2 hours, browsing GitHub for examples and trying to understand how this library is supposed to be used, but I just cannot figure it out.
I made a device with a dummy light entity using the examples provided in the README.md, but the script just runs and exits immediately. I tried supplying my own client instance, that I would manually connect to the broker and start the Paho event loop, but even that wouldn't respond to HAss' commands.
I'm new to HAss and the ecosystem around it (as well as home automation in general) and I'd like to write a simple script that would proxy local DDC/CI devices as entities, so I can view and change monitor brightness from my HAss dashboard. Surely I'm just missing something obvious 🙃.
The text was updated successfully, but these errors were encountered:
I originally wrote this as something I could call from bash scripts and create/update a MQTT entity. As such, it was originally meant to run-and-done as you're experiencing.
You need to instantiate the entity outside of your loop, then update it when the data you're using to determine its state changes. That'll automagically update the MQTT topic and HA will see the changes.
Hey, I was bashing my head at this for easily like 2 hours, browsing GitHub for examples and trying to understand how this library is supposed to be used, but I just cannot figure it out.
https://github.com/OwO-Digital/nixos-config/blob/cba34d6400c61fb767e00c2624433b7c2ebd5455/packages/misc/mqtt_linux/mqtt_linux/__init__.py
I made a device with a dummy light entity using the examples provided in the README.md, but the script just runs and exits immediately. I tried supplying my own client instance, that I would manually connect to the broker and start the Paho event loop, but even that wouldn't respond to HAss' commands.
I'm new to HAss and the ecosystem around it (as well as home automation in general) and I'd like to write a simple script that would proxy local DDC/CI devices as entities, so I can view and change monitor brightness from my HAss dashboard. Surely I'm just missing something obvious 🙃.
The text was updated successfully, but these errors were encountered: