- Test is dp 104, not 103, and should be optional - Self test should be a button, not a switch, and optional - Checking result should also be optional Issue #4992
@@ -2,15 +2,18 @@ name: Gas and CO detector
products:
- id: piuvzdlag3zsiqjk
manufacturer: Haozee
+ - id: zbuq0bto5szi53cw
+ manufacturer: Haozee
entities:
- - entity: switch
+ - entity: button
name: Self check
icon: "mdi:check-circle"
category: config
dps:
- id: 18
type: boolean
- name: switch
+ optional: true
+ name: button
- entity: sensor
name: Self check result
class: enum
@@ -18,6 +21,7 @@ entities:
- id: 19
type: string
name: sensor
mapping:
- dps_val: checking
@@ -160,7 +164,7 @@ entities:
- entity: event
name: Test
- - id: 103
+ - id: 104
name: event
optional: true