Skip to content
AWTRIX Flows
Submit flow
HASS library shown on an AWTRIX display
Fig. 1 HASS library, as 10der runs it.

HASS library

HASS library

Specifications
System AWTRIX NG Scripts
Firmware AWTRIX NG
Topic Smarthome
Built by 10der
File EuJbxQZhTQX9.ax · 5.1 KB
Icons
Published 8 Aug 2026
# @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.