#Light automation

1 messages · Page 1 of 1 (latest)

civic cedar
#

Hi

is someone able to help me make a node red automation to keep lights on if the pc is on, and then turn them off if the pc is off?

lusty locust
#

"Keep lights on"

I assume that you have an automation that turns em off?

If so; You will need to add to that flow a "current state" node to check the PC's state.
(I check if my PC is used by checking my discord/Steam/xboxlive accounts and compounding their data.)

If the state is on, the flow is interrupted.
If it is off, it continues.

You will also need a flow to turn off the lights once the PC is no longer in use.

calm craterBOT
lusty locust
#

Her is my personal light automation:

To turn them on: https://pastebin.com/KKWY82WH

To turn them off:

This flow
https://pastebin.com/i94yuAPg
And this subflow
https://pastebin.com/5FEMdCbx

civic cedar