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.

Show Device States as App shown on an AWTRIX display
Fig. 1 Show Device States as App, as Galadril runs it.

Show Device States as App

Show a specific device state from Domoticz on AWTRIX

Specifications
System Domoticz
Firmware AWTRIX 3
Topic Smarthome
Built by Galadril
File wq2N5N2R57KV.json · 5.0 KB
Icons
Published 2 Jan 2025
Downloads 20
Download flow

🔄 Activation and Timing:

  • The script is marked as active by setting active = true.
  • It runs every minute as specified in the trigger section timer = {'every 1 minutes'} to ensure frequent updates.
  1. 📝 Logging:

    • Entries are logged with the marker "AWTRIX_APP", making it easy to filter and identify messages related to this script.
    • The logging level is set to domoticz.LOG_INFO, capturing detailed informational logs for monitoring and debugging.
  2. 🔌 Power Check:

    • Checks if the "AWTRIX3 - Power" device is "On" before proceeding. If not, the script execution is halted.
    • Logs if the power device is off to explain why the script is not executing the status updates.
  3. 📈 Device Status Collection:

    • Iterates over a predefined list of devices in orderedDevices to ensure a consistent sequence.
    • Retrieves status for each device based on its type and applies the corresponding data formatting:
      • Temperature 🌡️: Captures temperature in Celsius (e.g., "21.5C").
      • Power ⚡: Records current power usage in watts (e.g., "150W").
      • Water 💧: Gathers water usage in liters (e.g., "23.4L").
      • Text 📝: Fetches textual status (e.g., "Online").
      • Switch 🔌: Monitors switch state, "On" or "Off".
      • Selector 🔄: Retrieves the current selector level name (e.g., "High").
      • Gas 🏭: Measures gas usage in cubic meters (e.g., "12.34 m³").
    • Logs successfully gathered statuses and any missing data errors.
  4. 📤 Status Transmission to AWTRIX:

    • Converts collected status data into JSON format for transmission to AWTRIX.
    • Accesses the "AWTRIX3 - Send Custom App" device to send updates.
    • Activates the app device briefly to ensure data is sent, logging the transmission for confirmation.

🏁 Purpose: This script facilitates real-time status monitoring from various home automation devices by displaying dynamic updates on the AWTRIX, enhancing the integration of Domoticz and AWTRIX for a seamless smart home experience.

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.