Letzter täglicher Build
Kompilierung fehlgeschlagen
Zuletzt gebaut: 06.09.2026, 15:01
Build-Details & Log anzeigen
m5tough.png
1713.0 KB
LICENSE
1.0 KB
1substitutions:
2 name: "shys-m5-tough"
3 friendly_name: "M5 Tough"
4 m5_textsensor_id: "m5_textsensor_id"
5 wifi_ssid: !secret wifi_ssid
6 wifi_password: !secret wifi_password
7
8packages:
9 smarthomeyourself.m5_tough:
10 url: https://github.com/SmartHome-yourself/m5-tough-touchmenu-for-esphome
11 file: shys-m5-tough-touchmenu.yaml
12
13dashboard_import:
14 package_import_url: github://SmartHome-yourself/shys-collection/tree/main/templates/esphome/setups/m5-tough/m5-tough.yaml@main
15 import_full_config: false
16
17binary_sensor:
18 - platform: template
19 name: "Motorrad-Garagentor Taster"
20 id: motorrad_tor_taster
21
22 - platform: template
23 name: "Carport-Tor Taster"
24 id: carport_tor_taster
25
26
27
28text_sensor:
29 - platform: shys_m5_tough
30 name: "Status"
31 id: m5_textsensor_id
32 init_sound: off
33 login_enabled: on
34
35 buttons:
36 - x: 10
37 y: 10
38 width: 220
39 height: 150
40 text: "Carport"
41
42 - x: 10
43 y: 160
44 width: 220
45 height: 150
46 text: "Garage"
47
48 on_value:
49 then:
50 - if:
51 condition:
52 - text_sensor.state:
53 id: m5_textsensor_id
54 state: "Button: Carport"
55 then:
56 - binary_sensor.template.publish:
57 id: carport_tor_taster
58 state: ON
59 - delay: 2s
60 - binary_sensor.template.publish:
61 id: carport_tor_taster
62 state: OFF
63
64 - if:
65 condition:
66 - text_sensor.state:
67 id: m5_textsensor_id
68 state: "Button: Garage"
69 then:
70 - binary_sensor.template.publish:
71 id: motorrad_tor_taster
72 state: ON
73 - delay: 2s
74 - binary_sensor.template.publish:
75 id: motorrad_tor_taster
76 state: OFF