Koenkk / zigbee-herdsman-converters

Collection of device converters to be used with zigbee-herdsman
MIT License
938 stars 3.09k forks source link

converter for Homr Multisensor #7608

Open dieneuser opened 6 months ago

dieneuser commented 6 months ago

I use a multisensor from Homr (https://gitlab.com/homrepo/applications/multisensor-lite).

I have a local converter for this created, but it no longer works for motion detection since the update to the current version 1.38.0-1. The value is always off.

const {deviceEndpoints, identify, temperature, pressure, humidity, illuminance, occupancy, iasWarning, battery, light} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['HRMSN01'],
    model: 'HRMSN01',
    vendor: 'Homr',
    description: 'Homr Multisensor',
    extend: [
        deviceEndpoints({"endpoints": {"msn": 1, "ota": 5, "rgb": 10}}),
        identify(),
        temperature(),
        pressure(),
        humidity(),
        illuminance(),
        occupancy(),
        iasWarning(),
        battery(),
        light({colorTemp: true, color: {modes: ['xy']}})
    ],
    meta: {"multiEndpoint":true},
};

module.exports = definition;

Everything worked in version 1.37.0.1

In the logs I see that the values ​​for the occupancy are now contained in occupancy_msn and not in 'occupency'.

Info 2024-06-05 21:26:20MQTT publish: topic 'zigbee2mqtt/0xf4ce36d1b0d2ad6f', payload '{"battery":98,"brightness":254,"color":{"x":0.371,"y":0.239},"color_mode":"xy","color_temp":0,"elapsed":60958,"humidity":49.74,"illuminance":0,"illuminance_lux":1,"last_seen":"2024-06-05T21:26:19+02:00","linkquality":32,"occupancy":false,"occupancy_1":true,"occupancy_msn":false,"power_on_behavior":null,"pressure":100.6,"state":"OFF","temperature":22.88}'

Info 2024-06-05 21:26:34MQTT publish: topic 'zigbee2mqtt/0xf4ce36d1b0d2ad6f', payload '{"battery":98,"brightness":254,"color":{"x":0.371,"y":0.239},"color_mode":"xy","color_temp":0,"elapsed":13799,"humidity":49.74,"illuminance":0,"illuminance_lux":1,"last_seen":"2024-06-05T21:26:33+02:00","linkquality":32,"occupancy":false,"occupancy_1":true,"occupancy_msn":true,"power_on_behavior":null,"pressure":100.6,"state":"OFF","temperature":22.88}'

I would like to officially integrate the converter here once it is working again.

(The original converter no longer works in zigbee2mqtt https://gitlab.com/homrepo/applications/multisensor-lite/-/blob/main/home_assistant/HRMSN01.js)

github-actions[bot] commented 1 day ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days