Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.55k stars 1.63k forks source link

Heiman HS3HT-EFA-3.0 support #16137

Closed sbouchex closed 1 year ago

sbouchex commented 1 year ago

Link

https://www.heimantech.com/

Database entry

{"id":4,"type":"EndDevice","ieeeAddr":"0x84fd27fffe8395ed","nwkAddr":49442,"manufId":4619,"manufName":"HEIMAN","powerSource":"Battery","modelId":"HS3HT-EFA-3.0","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":770,"inClusterList":[0,1,3,1026,2821],"outClusterList":[25],"clusters":{"genPowerCfg":{"attributes":{"batteryPercentageRemaining":200}},"msTemperatureMeasurement":{"attributes":{"61440":1500,"61441":3500,"61442":1,"61443":200,"measuredValue":1947}},"genBasic":{"attributes":{"modelId":"HS3HT-EFA-3.0","manufacturerName":"HEIMAN","powerSource":3,"zclVersion":3,"appVersion":18,"stackVersion":2,"hwVersion":16,"dateCode":"2021.4.11"}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":770,"inClusterList":[0,3,1029],"outClusterList":[],"clusters":{"msRelativeHumidity":{"attributes":{"61440":1500,"61441":9000,"61442":1000,"measuredValue":6091}},"genBasic":{"attributes":{}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":18,"stackVersion":2,"hwVersion":16,"dateCode":"2021.4.11","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1673592624525,"defaultSendRequestWhen":"immediate"}

Comments

The device is reported as "Not supported"

External converter

No response

Supported color modes

No response

Color temperature range

No response

threnard commented 1 year ago

Hi. I also have this device and was able to make it work with the following converter.


    zigbeeModel: ['HS3HT-EFA-3.0'],
    model: 'HS3HT', 
    vendor: 'HEIMAN',
    description: 'Heiman temperature & humidity sensor with display',
    fromZigbee: [fz.temperature, fz.humidity, fz.battery],
    toZigbee: [],
    configure: async (device, coordinatorEndpoint, logger) => {
        const endpoint1 = device.getEndpoint(1);
        await reporting.bind(endpoint1, coordinatorEndpoint, ['msTemperatureMeasurement', 'genPowerCfg']);
        await reporting.temperature(endpoint1);
        await reporting.batteryPercentageRemaining(endpoint1);
        await endpoint1.read('genPowerCfg', ['batteryPercentageRemaining']);
        const endpoint2 = device.getEndpoint(2);
        await reporting.bind(endpoint2, coordinatorEndpoint, ['msRelativeHumidity']);
        await reporting.humidity(endpoint2);
    },
    exposes: [e.battery(), e.temperature(), e.humidity()],

You can find a picture here: https://shop.smarthome-europe.com/14428-large_default/heiman-zigbee-30-temperature-and-humidity-sensor-with-display.jpg

Hope this will help. I thank you to add it to the official supported device.

Koenkk commented 1 year ago

Thanks @threnard, added!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)