-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Heiman HS2SA-5 Support #9604
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: master
Are you sure you want to change the base?
Heiman HS2SA-5 Support #9604
Conversation
Support for HS2SA-5 Smoke detector added to heiman.ts
model: "HS2SA-5", | ||
vendor: "Heiman", | ||
description: "Smoke detector", | ||
extend: [m.battery(), m.iasZoneAlarm({zoneType: "generic", zoneAttributes: ["alarm_1", "alarm_2", "tamper", "battery_low"]}), m.iasWarning()], |
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.
extend: [m.battery(), m.iasZoneAlarm({zoneType: "generic", zoneAttributes: ["alarm_1", "alarm_2", "tamper", "battery_low"]}), m.iasWarning()], | |
extend: [m.battery(), m.iasZoneAlarm({zoneType: "smoke", zoneAttributes: ["alarm_1", "tamper", "battery_low"]}), m.iasWarning()], |
Try with this
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.
Why was alarm_2 removed?
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 test, but I dont think it is needed
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.
I tried the code by creating an external_converter.
When I set the zoneType to smoke, I get 4 alarms. Two of them are false, the other ones are null (I tried it with alarm_1 and alarm_2):
{
"alarm_1": false,
"alarm_2": false,
"battery": 100,
"battery_low": false,
"linkquality": 164,
"tamper": false,
"smoke_alarm_1": null,
"smoke_alarm_2": null
}
I used the following code:
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';
export default {
zigbeeModel: ['HS2SA-EF-3.0'],
model: 'HS2SA-5',
vendor: 'Heiman',
description: 'Smoke detector',
extend: [m.battery(), m.iasZoneAlarm({"zoneType":"smoke","zoneAttributes":["alarm_1","alarm_2","tamper","battery_low"]}), m.iasWarning()],
meta: {},
};
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.
You can clear the old state by stopping z2m and removing it from the state.json
file ,then try with:
extend: [m.battery(), m.iasZoneAlarm({"zoneType":"smoke","zoneAttributes":["alarm_1","tamper","battery_low"]}), m.iasWarning()],
Support for HS2SA-5 Smoke detector added to heiman.ts
#27898