Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Unkn0wn-MDCLXIV
Copy link

@Unkn0wn-MDCLXIV Unkn0wn-MDCLXIV commented Jul 10, 2025

Support for HS2SA-5 Smoke detector added to heiman.ts

#27898

Unkn0wn-MDCLXIV and others added 2 commits July 10, 2025 05:44
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()],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Author

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?

Copy link
Owner

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

Copy link
Author

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: {},
};

Copy link
Owner

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()],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants