Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in
Show Device States as App shown on an AWTRIX display
Show Device States as App, as Galadril runs it.

Show Device States as App

Show a specific device state from Domoticz on AWTRIX

Domoticz AWTRIX 3
Download flow
About this flow
Specifications
System Domoticz
AWTRIX version AWTRIX 3
Topic Smarthome
Built by Galadril
File wq2N5N2R57KV.json · 5.0 KB
Icons
Published 2 Jan 2025
Downloads 23
Is this your flow?

If you created this flow, open your saved edit link to add it to your account. You can then manage it whenever you sign in. Adding it to your account replaces the edit link.

🔄 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.