this post was submitted on 04 Jul 2023
5 points (100.0% liked)
Pyscript: Python Scripting for Home Assistant
97 readers
1 users here now
Community for https://github.com/custom-components/pyscript
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Does anyone know of any place people share their pyscript solutions?
I doubt there is. We can make this place such :)
I've got literaly nothing to share =(
I have to make an automation system to control my house's heating, but I have yet to find the time... I looked a bit at the doc of pyscript, and i do think it's the best tool available for that.
As my air conditioner bases its fan control on its own thermometer, and its readings are irrelevant, as it is positioned on the AC itself, I made an AC automation using Pyscript that manages the AC modes, temperatures, and boost based on an external thermometer :)
Sounds neat. So long as that external thermometer is not too close to the cold air stream, its bound to give better readings than the built in one.
What i'm looking to build is a system that integrates automatic temperature adjustements for winter time variable rates and presence detection. The horrible crap I have made with the basic yaml automation ignore each other, which lead to wrong behavior in some (common) situations. I could solve it with an extra state variable, but it would still be full of duplicate of hardcoded values in the two automations...
I'm unsure how to organise my pyscript code to meet my goal in a clean and extensible way. I wish i could take a look at someone else's work.