Skip to content
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

[New device support]: HS1MIS-3.0 Smart Occupancy Sensor #19233

Closed
mario42004 opened this issue Oct 9, 2023 · 3 comments
Closed

[New device support]: HS1MIS-3.0 Smart Occupancy Sensor #19233

mario42004 opened this issue Oct 9, 2023 · 3 comments
Labels
new device support New device support request

Comments

@mario42004
Copy link

Link

https://www.heimantech.com/product/?type=detail&id=72

Database entry

{"id":24,"type":"EndDevice","ieeeAddr":"0x84fd27fffe8636a6","nwkAddr":34563,"manufId":4619,"manufName":"HEIMAN","powerSource":"Battery","modelId":"PIRILLSens$

Comments

We have developed the converter based on the documentation and other converters examples.

External converter

// Version 1.3
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;

const definition = {
    zigbeeModel: ['PIRILLSensor-EF-3.0'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
    model: 'HS1MIS-3.0' , // Vendor model number, look on the device for a model number
    vendor: 'HEIMAN', // Vendor of the device (only used for documentation and startup logging)
    description: 'Smart occupancy sensor', // Description of the device, copy from vendor site. (only used for documentation and startup logging)

    fromZigbee: [fz.occupancy, fz.battery, fz.illuminance],
    toZigbee: [],


   configure: async (device,cordinatorEndpoint,logger)=>{
        const endpoint0 = device.getEndpoint(1)
	const endpoint1 = device.getEndpoint(1)
	await reporting.bind(endpoint0, cordinatorEndpoint, ['msOccupancySensing','genPowerCfg']);
	await reporting.batteryPercentageRemaining(endpoint0)
	await reporting.occupancy(endpoint0)
	await reporting.bind(endpoint1, cordinatorEndpoint, ['msIlluminanceMeasurement']);
	await reporting.illuminance(endpoint1)

},
    exposes: [e.occupancy(), e.battery(),e.illuminance()],

};
module.exports = definition;

Supported color modes

No response

Color temperature range

No response

@mario42004 mario42004 added the new device support New device support request label Oct 9, 2023
Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Oct 9, 2023
@Koenkk
Copy link
Owner

Koenkk commented Oct 9, 2023

Added, thanks!

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)

@mario42004
Copy link
Author

mario42004 commented Oct 9, 2023 via email

@aelsharawi
Copy link

need to add similar one here please
#21796

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

No branches or pull requests

3 participants