Skip to content

New Flows can now belong to an account. Your old edit link keeps working — open it and attach the flow to an account, and you can edit it from any browser you sign in with.

Sign in
Unclaimed

This flow was submitted before accounts existed, so nobody owns it yet. If you submitted it, open the edit link you were given — it still works — and you can attach the flow to an account from there. There is no deadline, and attaching it retires the link for good.

Toggle Power On PC shown on an AWTRIX display
Fig. 1 Toggle Power On PC, as Galadril runs it.

Toggle Power On PC

The purpose of this script is to ensure that the AWTRIX3 device is powered in sync with the PC device, turning the AWTRIX3 device on when the PC is turned on and off when the PC is turned off. This can be useful for managing power usage or ensuring certai

Specifications
System Domoticz
Firmware AWTRIX 3
Topic Smarthome
Built by Galadril
File wqGQAm20ope0.json · 0.8 KB
Icons
Published 2 Jan 2025
Downloads 18
Download flow
  1. 🔄 Activation and Scope:

    • The script is active, as indicated by active = true.
    • It listens for state changes specifically from the device labeled 'PC'.
  2. 📝 Logging:

    • The script logs information messages with a marker labeled "AWTRIX3_APP". This helps in identifying logs related to this specific script.
    • The level of logging is set to domoticz.LOG_INFO, meaning informational messages will be recorded.
  3. ⚙️ Execution Logic:

    • The execute function is triggered whenever there is a change in the state of the 'PC' device.

    • When the PC device state changes to 'On':

      • The script checks if the 'AWTRIX3 - Power' device is not already 'On'.
      • If it isn't ('On'), the script turns it 'On' 🟢 and logs an informational message stating that 'AWTRIX3 - Power' was turned on because 'PC' is on.
    • When the PC device state changes to 'Off':

      • The script checks if the 'AWTRIX3 - Power' device is not already 'Off'.
      • If it isn't ('Off'), the script turns it 'Off' 🔴 and logs an informational message stating that 'AWTRIX3 - Power' was turned off because 'PC' is off.

🔌 Purpose: The purpose of this script is to ensure that the AWTRIX3 device is powered in sync with the PC device, turning the AWTRIX3 device on when the PC is turned on and off when the PC is turned off. This can be useful for managing power usage or ensuring certain devices are only active when necessary.

More information:

Domoticz:
www.domoticz.com

Domoticz AWTRIX3 Plugin:
https://github.com/galadril/Domoticz-AWTRIX3-Plugin

More flows for Domoticz or Smarthome

Something wrong with this flow? Report it.