Skip to content

Commit 1266c64

Browse files
authored
Fix indentation
1 parent da3fac5 commit 1266c64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/HASPmota.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,16 +1055,19 @@ The following attributes accept styling suffix:
10551055
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.
10561056

10571057
Parameters are associated to `p0b0` (page `0` item `0`):
1058+
10581059
```json
10591060
{"page":0,"id":0,"dimming_time":1,"dimming_min":35,"dimming_duration":30}
10601061
```
10611062

10621063
Parameters:
1064+
10631065
- `dimming_time` number of **minutes** before changing from full brightness to 1/4 brightness. Default: `0` = off.
10641066
- `dimming_duration` number of **seconds** before turning screen off. Default `30` seconds
10651067
- `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.
10661068

10671069
Events sent:
1070+
10681071
- `{"hasp":{"p0b0":{"idle":"short"}}}` is sent when dimming is enabled
10691072
- `{"hasp":{"p0b0":{"idle":"long"}}}` is sent when screen is turned off
10701073
- `{"hasp":{"p0b0":{"idle":"off"}}}` is sent when screen is turned on again after a press on the screen

0 commit comments

Comments
 (0)