• 1 Post
  • 16 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle





  • I don’t know how tech savvy you are, but I’m assuming since your on lemmy it’s pretty good :)

    The way we’ve solved this sort of problem in the office is by using the LLM’s JSON response, and a prompt that essentially keeps a set of JSON objects alongside the actual chat response.

    In the DND example, this would be a set character sheets that get returned every response but only changed when the narrative changes them. More expensive, and needing a larger context window, but reasonably effective.





  • I suspect this is a rendering/process thing rather than an accuracy thing. Have you tested if the logic of the first one isn’t listening to the other fields?

    Thinking it through, in an ‘and’ test, you do only have to watch for the the state of the first clause, because so long as that is false, it doesn’t matter what the rest say. In the ‘or’ clause, you need to watch for the value of all of them.







  • I’ve been using HA for a long time. I love that it is capable of aggregating all the data sources and orchestrating all the different sensors that are on the market. I haven’t used everything below, but I have used a lot of it and can give some pointers.

    Instead of a Conbee II I would suggest the Sonoff Dongle. I reached a point when I had a lot of devices that the conbee couldn’t quite keep up.

    I have smart bulbs from ikea, innr, linkind, Aldi. They all paired to the zigbee mesh pretty well. I also had some Osram ones that didn’t behave as relays so I took them out.

    The BT sensors look nice, and I believe they integrate with HA well, but your HA needs to be in BT range for them to be able to communicate. You could also look at the Sonoff environment sensors. I use these tucked away in different rooms and they are great.

    Cameras, the general advice is to make sure they support RTSP and ONVIF, with brands being Hikvision, Dahua or Amcrest. Everyone will say you should feed your cameras into a Network recorder first, with options often recommended being BlueIris, Frigate. I use Frigate.

    Feel free to ask any follow up questions, I’ll do my best to guide.


  • I’m currently in the middle of a renovation so my HA instance is down, but let me give you some pointers. I think it’s possible but it’s getting right into the guts of what makes HA powerful (and complicated)

    Firstly, template lights this is how you can surface a light that reads values from other elements and presents them as light settings.

    Then the attribute you want is rgb_color and you want to parse out the red value (for the red channel) and convert it to a brightness for the template lamp.

    Lastly you’ll need to work how to update the red value of the led strip when the brightness of the light changes. This will involve pulling back the green and blue values of the led strip and updating the strip’s rgb_color with the combined list. this page has examples.

    I’m sorry I can’t give you any sample code but this hopefully gets you started.