You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
@@ -77,6 +79,8 @@ The id of the icons is used later to configure the screens to display. So you sh
77
79
78
80
**file (Exlusive, filename):** a local filename
79
81
**url (Exclusive, url):** a url to download an icon
82
+
**awtrixid (Exclusive, number):** the number of the icon from the [Awtrix icon database](https://awtrix.blueforcer.de/icons.html)
83
+
80
84
81
85
### preview helper
82
86
@@ -171,19 +175,29 @@ ehmtx:
171
175
_Configuration variables:_
172
176
**id (Required, ID):** Manually specify the ID used for code generation and in service definitions.
173
177
174
-
**show_clock (Optional, seconds):** duration to display the clock after this time the date is display until next "show_screen"
178
+
**show_clock (Optional, seconds):** duration to display the clock after this time the date is display until next "show_screen". If `show_date` is false `show_clock` is false and the clock will be display as long as a normal screen!
175
179
176
180
**show_screen (Optional, seconds):** duration to display a screen or a clock/date sequence, a long text will be scrolled at least two times
177
181
182
+

183
+
178
184
**duration (Optional, minutes):** lifetime of a screen in minutes (default=5). If not updates a screen will be removed after ```duration``` minutes
179
185
186
+
**date_format (Optional, string):** formats the date display with [strftime syntax](https://esphome.io/components/time.html?highlight=strftime), defaults `"%d.%m."` (use `"%m.%d."` for the US)
187
+
188
+
**time_format (Optional, string):** formats the date display with [strftime syntax](https://esphome.io/components/time.html?highlight=strftime), defaults `"%H:%m"` (use `"%I:%M%p"` for the US)
189
+
180
190
**yoffset (Optional, pixel):** yoffset the text is aligned BASELINE_LEFT, the baseline defaults to 6
181
191
182
192
**xoffset (Optional, pixel):** xoffset the text is aligned BASELINE_LEFT, the left defaults to 1
183
193
184
194
**display8x32 (required, ID):** ID of the addressable display
185
195
186
-
**time (required, ID):** ID of the time component
196
+
**dayofweek (Optional, bool):** draw the day indicator on the bottom of the screen. Disable e.g. if you want larger fonts, defaults to true.
197
+
198
+
**show_date (Optional, bool):** if true, show the date for `show_screen - show_clock` seconds otherwise only shows the clock for `show_screen` seconds, defaults to true.
199
+
200
+
**time (required, ID):** ID of the time component. the display shows `!t!` until the time source is valid.
187
201
188
202
**font (required, ID):** ID of the font component
189
203
@@ -253,6 +267,26 @@ ehmtx:
253
267
254
268
For local automations you can use actions. This is the normal way of automations. The ```id(rgb8x32)->``` style will also work.
255
269
270
+
#### show date
271
+
272
+
You can dynamically enable or disable the display of the date see parameter `show_date`.
273
+
274
+
```
275
+
- ehmtx.show.date:
276
+
id: rgb8x32
277
+
flag: !lambda return true;
278
+
```
279
+
280
+
#### show day of week
281
+
282
+
You can dynamically enable or disable the display of the day of week, see parameter `day_of_week`.
283
+
284
+
```
285
+
- ehmtx.show.dayofweek:
286
+
id: rgb8x32
287
+
flag: !lambda return true;
288
+
```
289
+
256
290
#### Force screen
257
291
258
292
Force the selected screen ```icon_name``` to be displayed next. Afterwards the loop is continuing from this screen. e.g. helpfull for alarms. Or after an update of the value/text.
@@ -287,7 +321,7 @@ valid elements:
287
321
288
322
##### sample:
289
323
290
-
````
324
+
```
291
325
esphome:
292
326
name: $devicename
293
327
on_boot:
@@ -347,7 +381,8 @@ You have to use use id of your ehmtx component, e.g. ```rgb8x32```
347
381
alarm: false
348
382
```
349
383
350
-
Parameters:
384
+
parameters:
385
+
351
386
**id (required, ID):** ID of the ehmtx component
352
387
353
388
**text (required, string):** the text to display
@@ -597,6 +632,8 @@ sensor:
597
632
598
633
There is a optional [notifier component](https://github.com/lubeda/EHMTX_custom_component) you can install with hacs. It is compareable to the **_screen** service but more streamlined.
599
634
635
+
# breaking changes
636
+
2022.6.1 removed image types only `rgb565` is valid!
600
637
601
638
# Usage
602
639
@@ -608,3 +645,4 @@ THE SOFTWARE IS PROVIDED "AS IS", use at your own risk!
608
645
# Thanks
609
646
610
647
**[jd1](https://github.com/jd1)** for his contributions
648
+
**[ofirsnb](https://github.com/ofirsnb)** for his contributions
0 commit comments