Skip to content

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

Sign in
HASS library shown on an AWTRIX display
HASS library, as 10der runs it.

HASS library

HASS library

AWTRIX NG Scripts AWTRIX NG
About this flow
Specifications
System AWTRIX NG Scripts
AWTRIX version AWTRIX NG
Topic Smarthome
Built by 10der
File EuJbxQZhTQX9.ax · 5.1 KB
Icons
Published 8 Aug 2026
Downloads 26
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.

# @module
# @config  hass_url text  "Hass URL"   default="http://homeassistant.lan:8123"
# @config  hass_token text "Hass token" default=""

var hass_config = module("hass_config")
hass_config.hass_url = store.get("hass_url")
hass_config.hass_token = store.get("hass_token")
import hass
import hass_config

hass.init(hass_config.hass_url, hass_config.hass_token)      
def init()
     hass.int(self.home_temp_entity,
end

      def(value, error)
        if error != nil
          log("Home Assistant error: " + error)
          return
        end

        if value == nil
          log("Temperature attribute is nil")
          return
        end

        self.temp = value

        # log("Temperature: " + str(self.temp))
      end
    )

More flows for AWTRIX NG Scripts or Smarthome

Something wrong with this flow? Report it.