Repository navigation
WWST: add Zemismart KES606 four-gang relay/scene switch #3239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
71e1652
bc2cd13
eedb8f5
e1c0c3c
192595d
09a4655
5fd6d98
8bda664
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: scene-switch-4-gang | ||
| components: | ||
| - id: main | ||
| capabilities: | ||
| - id: switch | ||
| version: 1 | ||
| - id: button | ||
| version: 1 | ||
| - id: refresh | ||
| version: 1 | ||
| categories: | ||
| - name: RemoteController | ||
| preferences: | ||
| - title: Indicator Light | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regarding your review request:
We would prefer you use the shared preferences where possible
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I audited the current standard, stse and certifiedpreferences catalogs (90 definitions). The three-state power-on and indicator settings and the 0–43200-second toggle countdown do not have equivalent shared definitions. For example, restorePowerState is Boolean; powerOffMemory adds unsupported reverse behavior; turnOffDelay lacks zero cancellation, the full range and delayed-on behavior.
I have therefore retained the inline definitions and saved settings in this revision. Could you advise whether there is a preferred compatible shared enum or supported migration mechanism for this case? The catalog/schema audit is complete, but I am not claiming a shared-preference conversion. |
||
| name: lightMode | ||
| required: false | ||
| preferenceType: enumeration | ||
| definition: | ||
| options: | ||
| none: Off | ||
| relay: Follow Relay | ||
| pos: Position Indicator | ||
| default: relay | ||
| - title: Global Power-on State | ||
| name: relayStatus | ||
| required: false | ||
| preferenceType: enumeration | ||
| definition: | ||
| options: | ||
| off: Off | ||
| on: On | ||
| memory: Memory | ||
| default: memory | ||
| - title: Gang 1 Power-on State | ||
| name: relayStatus1 | ||
| required: false | ||
| preferenceType: enumeration | ||
| definition: | ||
| options: | ||
| off: Off | ||
| on: On | ||
| memory: Memory | ||
| default: memory | ||
| - title: Gang 2 Power-on State | ||
| name: relayStatus2 | ||
| required: false | ||
| preferenceType: enumeration | ||
| definition: | ||
| options: | ||
| off: Off | ||
| on: On | ||
| memory: Memory | ||
| default: memory | ||
| - title: Gang 3 Power-on State | ||
| name: relayStatus3 | ||
| required: false | ||
| preferenceType: enumeration | ||
| definition: | ||
| options: | ||
| off: Off | ||
| on: On | ||
| memory: Memory | ||
| default: memory | ||
| - title: Gang 4 Power-on State | ||
| name: relayStatus4 | ||
| required: false | ||
| preferenceType: enumeration | ||
| definition: | ||
| options: | ||
| off: Off | ||
| on: On | ||
| memory: Memory | ||
| default: memory | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: scene-switch-child-scene | ||
| components: | ||
| - id: main | ||
| capabilities: | ||
| - id: button | ||
| version: 1 | ||
| categories: | ||
| - name: RemoteController | ||
| preferences: | ||
| - title: Mode | ||
| name: switchMode | ||
| description: Switch mode shows a controllable relay; scene mode shows a wireless button. | ||
| required: true | ||
| preferenceType: enumeration | ||
| definition: | ||
| options: | ||
| switch: Switch | ||
| scene: Scene | ||
| default: scene |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: scene-switch-child | ||
| components: | ||
| - id: main | ||
| capabilities: | ||
| - id: switch | ||
| version: 1 | ||
| - id: refresh | ||
| version: 1 | ||
| categories: | ||
| - name: Switch | ||
| preferences: | ||
| - title: Mode | ||
| name: switchMode | ||
| description: Switch mode shows a controllable relay; scene mode shows a wireless button. | ||
| required: true | ||
| preferenceType: enumeration | ||
| definition: | ||
| options: | ||
| switch: Switch | ||
| scene: Scene | ||
| default: switch | ||
| - title: Countdown Seconds | ||
| name: countdownSeconds | ||
| description: Set the relay countdown in seconds; 0 disables the countdown. | ||
| required: false | ||
| preferenceType: integer | ||
| definition: | ||
| minimum: 0 | ||
| maximum: 43200 | ||
| default: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the
ts0601-from the profile names to make them generic.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed in 8bda664 to
scene-switch-4-gang,scene-switch-childandscene-switch-child-scene, including the filenames, profilenamefields, fingerprint and test references. Capability and preference definitions are otherwise unchanged.