Koenkk / zigbee-herdsman-converters

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

Add device Vimar 14593 #2723

Closed alesoft73 closed 3 years ago

alesoft73 commented 3 years ago

Hi, I'm trying to integrate this device. I was able to integrate and manage the on / off status switch however, the device should also have the powermetering reading status.

This is the link: https://www.vimar.com/en/int/catalog/product/index/code/14593

I have use a "zigbee-herdsman-converters"

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;

module.exports = [ { zigbeeModel: ['Mains_Power_Outlet_v1.0'], model: '14593.0', vendor: 'Vimar', description: 'Connected actuator 16A', extend: extend.switch(), configure: async (device, coordinatorEndpoint, logger) => { const endpoint = device.getEndpoint(10); await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']); }, }, ];

Switch on/off work... but powermeter ??

this is a db:

{"id":17,"type":"Router","ieeeAddr":"0xf4ce3615c55c9503","nwkAddr":3980,"manufId":4660,"manufName":"Vimar","powerSource":"Mains (single phase)","modelId":"Mains_Power_Outlet_v1. 0","epList":[10,242],"endpoints":{"10":{"profId":260,"epId":10,"devId":9,"inlusterList":[0,3,6,5,4],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"Mains_Power_Outlet_v1.0","manufacturerName":"Vimar","powerSource":1,"zclVersion":2,"appVersion":1,"stackVersion":10,"hwVersion":11,"dateCode":"20200501","swBuildId":""}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00158d00032013ce","endpointID":1},{"cluster":33,"type":"endpoint","deviceIeeeAddress":"0x00158d00032013ce","endpointID":1},{"cluster":0,"type":"endpoint","deviceIeeeAddress":"0x00158d00032013ce","endpointID":1}],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[{"cluster":33,"type":"endpoint","deviceIeeeAddress":"0x00158d00032013ce","endpointID":1},{"cluster":0,"type":"endpoint","deviceIeeeAddress":"0x00158d00032013ce","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00158d00032013ce","endpointID":1},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00158d00032013ce","endpointID":1},{"cluster":3,"type":"endpoint","deviceIeeeAddress":"0x00158d00032013ce","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":1,"stackVersion":10,"hwVersion":11,"dateCode":"20200501","swBuildId":"","zclVersion":2,"interviewCompleted":true,"meta":{"configured":1681128303},"lastSeen":1624687590521}

This is a debug:

debug 2021-06-25 21:59:50: Received Zigbee message from '0xf4ce3615c55c9503', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 10 with groupID null

Many thanks.

alesoft73 commented 3 years ago

Move to New Device Support Request.. thanks