Small tweaks to ZHA service strings (#96709)

This commit is contained in:
c0ffeeca7 2023-07-17 09:08:27 +02:00 committed by GitHub
parent f809b7284b
commit 9496b651a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -425,8 +425,8 @@
} }
}, },
"warning_device_warn": { "warning_device_warn": {
"name": "Warning device warn", "name": "Warning device starts alert",
"description": "This service starts the WD operation. The WD alerts the surrounding area by audible (siren) and visual (strobe) signals.", "description": "This service starts the operation of the warning device. The warning device alerts the surrounding area by audible (siren) and visual (strobe) signals.",
"fields": { "fields": {
"ieee": { "ieee": {
"name": "[%key:component::zha::services::permit::fields::ieee::name%]", "name": "[%key:component::zha::services::permit::fields::ieee::name%]",
@ -434,11 +434,11 @@
}, },
"mode": { "mode": {
"name": "[%key:common::config_flow::data::mode%]", "name": "[%key:common::config_flow::data::mode%]",
"description": "The Warning Mode field is used as an 4-bit enumeration, can have one of the values 0-6 defined below in table 8-20 of the ZCL spec. The exact behavior of the WD device in each mode is according to the relevant security standards." "description": "The Warning Mode field is used as a 4-bit enumeration, can have one of the values 0-6 defined below in table 8-20 of the ZCL spec. The exact behavior of the warning device in each mode is according to the relevant security standards."
}, },
"strobe": { "strobe": {
"name": "[%key:component::zha::services::warning_device_squawk::fields::strobe::name%]", "name": "[%key:component::zha::services::warning_device_squawk::fields::strobe::name%]",
"description": "The Strobe field is used as a 2-bit enumeration, and determines if the visual indication is required in addition to the audible siren, as indicated in Table 8-21 of the ZCL spec. \"0\" means no strobe, \"1\" means strobe. If the strobe field is “1” and the Warning Mode is “0” (“Stop”) then only the strobe is activated." "description": "The Strobe field is used as a 2-bit enumeration, and determines if the visual indication is required in addition to the audible siren, as indicated in Table 8-21 of the ZCL spec. \"0\" means no strobe, \"1\" means strobe. If the strobe field is “1” and the Warning Mode is “0” (“Stop”), then only the strobe is activated."
}, },
"level": { "level": {
"name": "Level", "name": "Level",
@ -446,11 +446,11 @@
}, },
"duration": { "duration": {
"name": "Duration", "name": "Duration",
"description": "Requested duration of warning, in seconds (16 bit). If both Strobe and Warning Mode are \"0\" this field SHALL be ignored." "description": "Requested duration of warning, in seconds (16 bit). If both Strobe and Warning Mode are \"0\" this field is ignored."
}, },
"duty_cycle": { "duty_cycle": {
"name": "Duty cycle", "name": "Duty cycle",
"description": "Indicates the length of the flash cycle. This allows you to vary the flash duration for different alarm types (e.g., fire, police, burglar). The valid range is 0-100 in increments of 10. All other values must be rounded to the nearest valid value. Strobe calculates a duty cycle over a duration of one second. The ON state must precede the OFF state. For example, if Strobe Duty Cycle Field specifies “40,”, then the strobe flashes ON for 4/10ths of a second and then turns OFF for 6/10ths of a second." "description": "Indicates the length of the flash cycle. This allows you to vary the flash duration for different alarm types (e.g., fire, police, burglar). The valid range is 0-100 in increments of 10. All other values must be rounded to the nearest valid value. Strobe calculates a duty cycle over a duration of one second. The ON state must precede the OFF state. For example, if the Strobe Duty Cycle field specifies “40,”, then the strobe flashes ON for 4/10ths of a second and then turns OFF for 6/10ths of a second."
}, },
"intensity": { "intensity": {
"name": "Intensity", "name": "Intensity",