Skip to content

Commit

Permalink
Weaja S9 gas alarm: fix minor issues
Browse files Browse the repository at this point in the history
- Mute button does not work, so logic reversed
- Carbon monoxide was marked as diagnostic, inconsistent with other sensors.
- Alarm time resets to 0 on startup due to null mapping to 0.
  Changed to show as unknown instead.

Issue #2434
  • Loading branch information
make-all committed Feb 5, 2025
1 parent 192cb0a commit abc955d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions custom_components/tuya_local/devices/weaja_s9_gasalarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ entities:
range:
min: 0
max: 60
mapping:
- dps_val: null
value: 0
hidden: true
# dp 12 is labelled as switch_alarm, but does not appear to work, so
# possibly just an indicator of some sort. Left as an attribute until
# it can be figured out.
Expand Down Expand Up @@ -67,9 +63,13 @@ entities:
type: boolean
name: button
optional: true
mapping:
- dps_val: false
value: true
- dps_val: true
value: false
- entity: sensor
class: carbon_monoxide
category: diagnostic
dps:
- id: 20
type: integer
Expand Down

0 comments on commit abc955d

Please sign in to comment.