Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ You can thank the authors by these links:

-----------------------------------------------------------------------------------------------------
## Changelog
### **WORK IN PROGRESS**
* (schimi1983) Smoke and water leak sensors get the roles the device detector expects (sensor.alarm.fire / sensor.alarm.flood)

### 3.6.1 (2026-11-20)
* (reloxx13) Add optional group membership restoration after rejoin or successful interview (disabled by default), and report membership update failures after synchronization.
* (asgothian) cleanup, ZH11. ZHC 26.133
Expand Down
6 changes: 5 additions & 1 deletion lib/exposes.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ function createFromExposes(model, def, device, options, log) {
break;

case 'water_leak':
state = modifyState(genState(expose, {role:'indicator', name:'detected'}), {
state = modifyState(genState(expose, {role:'sensor.alarm.flood', name:'detected'}), {
prop:'water_leak',
name:'Water leak detected'
});
Expand All @@ -949,6 +949,10 @@ function createFromExposes(model, def, device, options, log) {
// state = getStateDefinition('child_lock');
break;

case 'smoke':
state = genState(expose, {role:'sensor.alarm.fire'});
break;

case 'occupancy':
state = genState(expose, {role:'sensor.motion'});
//state = getStateDefinition('occupancy');
Expand Down
Loading