Nützliche Links:
https://blueforcer.github.io/awtrix3/#/README – Anleitung für Awtrix
https://developer.lametric.com/icons – Icons für Awtrix
Helligkeit zurücksetzen:
Name des Gerätes z.B.: awtrix
In Home Assistant → Entwicklerwerkzeuge → Dienste → mqtt.publish
- Topic:
awtrix/settings - Payload:
{"ABRI":false,"BRI":100}
Standard APPs per HTML löschen.
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>AWTRIX Settings</title>
</head>
<body>
<button onclick="post({WD:false})">Weather AUS</button>
<button onclick="post({BAT:false})">Battery AUS</button>
<button onclick="post({TEMP:false, HUM:false})">Temp/Hum AUS</button>
<button onclick="post({WD:true, BAT:true, TEMP:true, HUM:true})">Alles AN</button>
<script>
async function post(obj){
const res = await fetch("http://192.168.1.95/api/settings", {
method: "POST",
headers: {"Content-Type":"application/json"},
body: JSON.stringify(obj)
});
alert(await res.text());
}
</script>
</body>
</html>
PV-Total:
awtrix/custom/PV-Leistung
action: mqtt.publish
data:
topic: awtrix_led/custom/Energie-Total
evaluate_payload: false
payload: |-
{
"text": "{{ states('sensor.benning_total_energy_produced')|float(0)|round(0)|int }}{{ state_attr('sensor.benning_total_energy_produced','unit_of_measurement') }} / {{ states('sensor.container_total_energieabgabe_uber_lebensdauer')|float(0)|round(0)|int }}{{ state_attr('sensor.container_total_energieabgabe_uber_lebensdauer','unit_of_measurement') }}",
"duration": 10,
"icon": "energy_today"
}
PV-Leistung:
awtrix/custom/PV-Leistung
action: mqtt.publish
data:
topic: awtrix_led/custom/PV-Leistung
evaluate_payload: false
payload: >-
{
"text": "{{ states('sensor.benning_ac_power') }}{{ state_attr('sensor.benning_ac_power','unit_of_measurement') }}",
"brightness": 100,
"duration": 10,
"icon": "Solar_power_white"
}
Aussentremperatur:
awtrix/custom/Aussentemperatur
{
"text": "{{ states('sensor.th_sensor_outdoor_temperatur') }}{{ state_attr('sensor.th_sensor_outdoor_temperatur','unit_of_measurement') }}",
"duration": 10,
"icon": "temperature"
}