forked from lubeda/EsphoMaTrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfullfeature.yaml
163 lines (145 loc) · 3.5 KB
/
fullfeature.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# esphome config file with all features
substitutions:
devicename: ehmtx8266
ledpin: GPIO02
board: d1_mini
loglevel: DEBUG
external_components:
- source:
type: git
url: https://github.com/lubeda/EsphoMaTrix
esphome:
name: $devicename
on_boot:
priority: -100
then:
- ehmtx.text.color:
id: rgb8x32
red: !lambda return 200;
green: !lambda return 100;
blue: !lambda return 50;
- ehmtx.clock.color:
id: rgb8x32
red: !lambda return 150;
green: !lambda return 0;
blue: !lambda return 100;
- ehmtx.today.color:
id: rgb8x32
red: !lambda return 0;
green: !lambda return 100;
blue: !lambda return 0;
- ehmtx.weekday.color:
id: rgb8x32
red: !lambda return 0;
green: !lambda return 0;
blue: !lambda return 100;
- ehmtx.alarm.color:
id: rgb8x32
red: !lambda return 200;
green: !lambda return 150;
blue: !lambda return 30;
web_server:
port: 80
esp8266:
board: $board
font:
- file: monobit.ttf
id: ehmtx_font
size: 16
glyphs: |
!?"%()+*=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz€@<>/
logger:
level: $loglevel
api:
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
light:
- platform: neopixelbus
id: ehmtx_light
type: GRB
variant: WS2812
pin: $ledpin
num_leds: 256
color_correct: [30%, 30%, 30%]
name: "$devicename Light"
restore_mode: ALWAYS_OFF
on_turn_on:
lambda: |-
id(ehmtx_display)->set_enabled(false);
on_turn_off:
lambda: |-
id(ehmtx_display)->set_enabled(true);
time:
- platform: homeassistant
id: ehmtx_time
display:
- platform: addressable_light
id: ehmtx_display
addressable_light_id: ehmtx_light
width: 32
height: 8
pixel_mapper: |-
if (x % 2 == 0) {
return (x * 8) + y;
}
return (x * 8) + (7 - y);
rotation: 0°
update_interval: 16ms
auto_clear_enabled: true
lambda: |-
id(rgb8x32)->tick();
id(rgb8x32)->draw();
sensor:
- platform: uptime
name: Uptime Sensor
ehmtx:
id: rgb8x32
time_component: ehmtx_time
matrix_component: ehmtx_display
clock_time: 5 # seconds
screen_time: 8 # seconds
font_id: ehmtx_font
show_dow: true # day of week
icons2html: true # generate html with con overview
brightness: 80 # percent
time_format: "%H:%M"
date_format: "%d.%m."
week_start_monday: true
xoffset: 1
yoffset: 6
scroll_count: 2
scroll_interval: 80
frame_interval: 192
on_next_screen: # trigger on screen change
lambda: |-
ESP_LOGD("TriggerTest","Iconname: %s",x.c_str());
ESP_LOGI("TriggerTest","Text: %s",y.c_str());
on_next_clock: # trigger on clock display
then:
- ehmtx.clock.color:
id: rgb8x32
red: !lambda return 150;
green: !lambda return rand() % 255;
blue: !lambda return 100;
icons:
- id: xani
lameid: 6075
- id: xsta
lameid: 11236
- url: https://developer.lametric.com/content/apps/icon_thumbs/48720.gif
pingpong: true
id: pipo
frame_duration: 300
- lameid: 5965
frame_duration: 180
id: d180
- lameid: 5965
frame_duration: 80
id: d080
- id: fullscreen
file: sample8x32.gif
- id: samplegif
file: sample8x8.gif