Able to not set a relay for Light Area #935
Replies: 4 comments 5 replies
-
An area must always have an relay. That is just mandatory. But you could just create a script relay that does nothing: https://theyosh.github.io/TerrariumPI/hardware/relay/script-relay/ And use that script relay in your area. Example code: https://github.com/theyosh/TerrariumPI/blob/main/contrib/external_switch.py |
Beta Was this translation helpful? Give feedback.
-
Looks like what I need. I was not aware of this... Thanks. |
Beta Was this translation helpful? Give feedback.
-
Managed to make the script work. For the readout I'm returning an interpolation of the relay value to mimic the lights which are custom dimmable. Here's the code I'm using for the readout:
Which work as expected:
And what's showing in the log:
This way wattage calculation migth be not that accurate but not a problem really. Still maybe something I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
-
Thanks, the script dimmer did the trick! |
Beta Was this translation helpful? Give feedback.
-
This one should be easy I think.
Here's my situation, I'm using a Jungle Dawn light setup which has it's own incorporated timer and from my knowledge is not supported by TerrariumPi. Which is fine, I could just create a Light area with the same timer schedule in TerrariumPi, only the area requests that a relay is picked up and without that I cannot create the area...
So If I'm correct and there is any other implication with it, maybe just making the relay option not required or adding a "None" or "Ignored" option would do.
Thanks.
Daniel Santos.
Beta Was this translation helpful? Give feedback.
All reactions