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.
- Displays current time, date, himidity and temperature
- Displays more informations throw AWTRIX Light App from various sensors connected to Home Assistant
To get started with this project, you will need the following:
- A ULANZI TC001
- A Home Assistant installation
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:
Configure a new custom app to the ULANZI AWTRIX Light Firmware
- From Home Assistant, go to configure in Mosquitto broker:
- Define a new custom app, for example 'outsidetemperature', by publish a custom app message:
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.
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:
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:
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"}
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.
This project is licensed under the MIT License - see the LICENSE file for details.
This project was inspired by Home Assistant and the Smart Home Junkie