Skip to content

Commit da3fac5

Browse files
authored
HASPmota auto-dimming
1 parent d826da9 commit da3fac5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/HASPmota.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,25 @@ The following attributes accept styling suffix:
10501050

10511051
## Tasmota extensions
10521052

1053+
### Auto-dimming
1054+
1055+
HASPmota has an auto-dimming features that triggers after a period of inactivity (i.e. no touch on the screen). The screen is first dimmed to lower brightness after `dimming_time` minutes and turned off after `dimming_duration` seconds. When dimmed or off, touch events are disabled, to prevent pressing on an invisible button and triggering unwanted behavior.
1056+
1057+
Parameters are associated to `p0b0` (page `0` item `0`):
1058+
```json
1059+
{"page":0,"id":0,"dimming_time":1,"dimming_min":35,"dimming_duration":30}
1060+
```
1061+
1062+
Parameters:
1063+
- `dimming_time` number of **minutes** before changing from full brightness to 1/4 brightness. Default: `0` = off.
1064+
- `dimming_duration` number of **seconds** before turning screen off. Default `30` seconds
1065+
- `dimming_min` minimum visible value for DisplayDimmer that keeps the screen on. Default `1`. This used for screen that turn off the backlighting when `DisplayDimmer` is under a certain value.
1066+
1067+
Events sent:
1068+
- `{"hasp":{"p0b0":{"idle":"short"}}}` is sent when dimming is enabled
1069+
- `{"hasp":{"p0b0":{"idle":"long"}}}` is sent when screen is turned off
1070+
- `{"hasp":{"p0b0":{"idle":"off"}}}` is sent when screen is turned on again after a press on the screen
1071+
10531072
### Update sensor value via rules
10541073

10551074
You can automatically adjust attributes `val` and `text` from sensor values via a simple rule engine.

0 commit comments

Comments
 (0)