jeremyDevios / UlanziHomeAssistantApp

This project aims to modify the ULANZI TC001 clock that is compatible with Home Assistant and displays information on the value of various sensors.

Home Page:https://jeremy-lepoetre.fr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clock Home Assistant Integration

This project aims to modify the ULANZI TC001 clock that is compatible with Home Assistant and displays information on the value of various sensors. The clock is designed to be easy to read and display useful information at a glance.

Features

  • Displays current time, date, himidity and temperature
  • Displays more informations throw AWTRIX Light App from various sensors connected to Home Assistant

Getting Started

To get started with this project, you will need the following:

Step 1:

You can follow the tutorial of Smart Home Junkie

  • Flash the ULANZI TC001 and install AWTRIX Light
  • Connect the ULANZI TC001 to the network from the wifi hotspot
  • Install Mosquitto broker on Home Assistant
  • Configure a MQTT User
  • Configure the MQTT User from the ULANZI TC001 IP Network Interface
  • Verify that the ULANZI TC001 is present in the devices panel: awtrix_homeassistant

Step 2:

Configure a new custom app to the ULANZI AWTRIX Light Firmware

  • From Home Assistant, go to configure in Mosquitto broker:

image

  • Define a new custom app, for example 'outsidetemperature', by publish a custom app message:

image

Subject:

awtrix_2fc7d8/custom/outsidetemperature

Where awtrix_XXXXX correspond to the device name on HomeAssistant

Content:

{
 "text": "{{ state_attr('weather.your_weather', 'temperature') | round(0, default=-99) }}",
 "icon": "52787", 
  "color": "F2A900" 
}

Click on publish, the app should be pushed to the ULANZI TC001 and the content will be displayed in the list off presented app. Warning, at this moment, the content of sensor temperature is not filled, the next step will define the content throw automation.

Step 3:

Update the sensor value in the new custom app:

  • From Home Assistant, go to configure in Automation menu and define an automation that will update the value when the app is displayed on the ULANZI screen:

Capture d’écran 2023-04-24 à 11 36 07

image

This automation will, when the "Current App" switches to the created application "outsidetemperature", update the content displayed on the screen with the value of the outside temperature present in the Home Assistant Meto application.

Follow the tutorial of Smart Home Junkie to find and download icons from ID (https://developer.lametric.com/icons)

Here is the result:

temperatureApp

Some other examples:

Bitcoin Price:

bitcoinPriceApp

Integrate Kraken Bitcoin Price in Home Assistant following tutorial Define a new custom app, for example 'bitcoin', by publish a custom app message:

Subject:

awtrix_2fc7d8/custom/bitcoin

Where awtrix_XXXXX correspond to the device name on HomeAssistant

Content:

service: mqtt.publish
data:
  qos: 0
  retain: false
  topic: awtrix_2fc7d8/custom/bitcoin
  payload: >-
    { "text": "{{states.sensor.xbt_usd_ask.state | round(1) }} $", "icon":
    "52787",  "color": "F2A900"}

Solar Panel Watt:

solarPanelWattApp

Contributing

Contributions to this project are welcome! If you find a bug, have a feature request, or want to contribute code, please open an issue or pull request on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

This project was inspired by Home Assistant and the Smart Home Junkie

About

This project aims to modify the ULANZI TC001 clock that is compatible with Home Assistant and displays information on the value of various sensors.

https://jeremy-lepoetre.fr/