Hello, first of all, thanks for this great job.
I've recently bought [this]((https://www.aliexpress.com/item/HEIMAN-Home-Smart-Combustible-Gas-Detector-ZigBee-Mini-Natural-Gas-Detector-Alarm-for-Smart-Home-Security/32882579190.html) sensor
and I tried to configure it like Heiman SmokeSensor-N, which is in sheperd devices.js but with no luck.
I think I'm forgetting something obvious, but plese be patient, I'm a totally newbie
Thanks in advance
Andrea
ps I hope I used the right way to include the log files
Here is the log file:
`
[email protected] start /zigbee2mqtt-1.1.0
node index.js
zigbee2mqtt:info 2019-1-31 17:36:37 Logging to directory: '/share/zigbee2mqtt/log/2019-01-31.17-36-37'
zigbee2mqtt:debug 2019-1-31 17:36:37 Removing old log directory '/share/zigbee2mqtt/log/2019-01-27.15-47-24'
zigbee2mqtt:debug 2019-1-31 17:36:38 Using zigbee-shepherd with settings: '{"net":{"panId":6754,"channelList":[11],"precfgkey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13]},"dbPath":"/share/zigbee2mqtt/database.db","sp":{"baudRate":115200,"rtscts":true}}'
zigbee2mqtt:debug 2019-1-31 17:36:38 Loaded state from file /share/zigbee2mqtt/state.json
zigbee2mqtt:info 2019-1-31 17:36:38 Starting zigbee2mqtt version 1.1.0 (commit #unknown)
zigbee2mqtt:info 2019-1-31 17:36:38 Starting zigbee-shepherd
zigbee2mqtt:info 2019-1-31 17:36:40 zigbee-shepherd started
zigbee2mqtt:info 2019-1-31 17:36:40 Coordinator firmware version: '20180815'
zigbee2mqtt:debug 2019-1-31 17:36:40 zigbee-shepherd info: {"enabled":true,"net":{"state":"Coordinator","channel":11,"panId":"0x1a62","extPanId":"0xdddddddddddddddd","ieeeAddr":"0x00124b0018e1b298","nwkAddr":0},"firmware":{"transportrev":2,"product":0,"version":"2.6.3","revision":20180815},"startTime":1548952600,"joinTimeLeft":0}
zigbee2mqtt:info 2019-1-31 17:36:40 Currently 1 devices are joined:
zigbee2mqtt:info 2019-1-31 17:36:40 Gas Sensor (0x00158d0001deec28): unkown - undefined unknown (Router)
zigbee2mqtt:info 2019-1-31 17:36:40 Zigbee: disabling joining new devices.
zigbee2mqtt:info 2019-1-31 17:36:40 Connecting to MQTT server at mqtt://homeassistant
zigbee2mqtt:info 2019-1-31 17:36:41 zigbee-shepherd ready
zigbee2mqtt:debug 2019-1-31 17:36:41 Mounted the cieApp (epId 11)
zigbee2mqtt:info 2019-1-31 17:36:41 Connected to MQTT server
zigbee2mqtt:info 2019-1-31 17:36:41 MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
`
this is my devices.js
`
{
zigbeeModel: ["GASSensor-N"], // The model ID from: Device with modelID 'lumi.sens' is not supported.
model: "HS3CG", // 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: "Heiman Combustible Gas Sensor", // Description of the device, copy from vendor site. (only used for documentation and startup logging)
supports: "Gas", // Actions this device supports (only used for documentation)
fromZigbee: [fz.heiman_gas],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
}
and this is database.db
{"id":1,"type":"Coordinator","ieeeAddr":"0x00124b0018e1b298","nwkAddr":0,"manufId":0,"epList":[1,2,3,4,5,6,11],"status":"online","joinTime":1548915999,"endpoints":{"1":{"profId":260,"epId":1,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"2":{"profId":257,"epId":2,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"3":{"profId":261,"epId":3,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"4":{"profId":263,"epId":4,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"5":{"profId":264,"epId":5,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"6":{"profId":265,"epId":6,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"11":{"profId":260,"epId":11,"devId":1024,"inClusterList":[0,1281,3],"outClusterList":[1280,1282,3],"clusters":{"genBasic":{"dir":{"value":1},"acls":{"zclVersion":"R","hwVersion":"R","manufacturerName":"R","modelId":"R","dateCode":"R","powerSource":"R","locationDesc":"RW","physicalEnv":"RW","deviceEnabled":"RW"},"attrs":{"zclVersion":1,"hwVersion":1,"manufacturerName":"sivann inc.","modelId":"hiver0001","dateCode":"20170407","powerSource":1,"locationDesc":" ","physicalEnv":0,"deviceEnabled":1}},"ssIasAce":{"dir":{"value":1}},"ssIasZone":{"dir":{"value":2},"cmdRsps":{"enrollReq":{"exec":"exec"},"statusChangeNotification":{"exec":"exec"}}},"ssIasWd":{"dir":{"value":2}},"genIdentify":{"dir":{"value":3},"acls":{"identifyTime":"RW"},"attrs":{"identifyTime":0}}}}},"_id":"C3iG1reA9lRCC7d8"}
{"id":2,"type":"Router","ieeeAddr":"0x00158d0001deec28","nwkAddr":4491,"manufId":4619,"manufName":"HEIMAN","powerSource":"Mains (single phase)","modelId":"GASSensor-N","epList":[1],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1280],"outClusterList":[25],"clusters":{"genBasic":{"dir":{"value":1},"attrs":{"zclVersion":1,"appVersion":18,"stackVersion":2,"hwVersion":16,"manufacturerName":"HEIMAN","modelId":"GASSensor-N","dateCode":"2018.3.10","powerSource":1}},"genIdentify":{"dir":{"value":1},"attrs":{"identifyTime":0}},"genOta":{"dir":{"value":2},"attrs":{}},"ssIasZone":{"dir":{"value":1},"attrs":{"zoneState":0,"zoneType":43,"zoneStatus":32,"iasCieAddr":"0x0000000000000000","zoneId":255}}}}},"_id":"zyfYXK7CTY9kbcbH"}
{"$$indexCreated":{"fieldName":"id","unique":true,"sparse":false}}
{"id":1,"type":"Coordinator","ieeeAddr":"0x00124b0018e1b298","nwkAddr":0,"manufId":0,"epList":[1,2,3,4,5,6],"status":"online","joinTime":1548952599,"endpoints":{"1":{"profId":260,"epId":1,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"2":{"profId":257,"epId":2,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"3":{"profId":261,"epId":3,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"4":{"profId":263,"epId":4,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"5":{"profId":264,"epId":5,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"6":{"profId":265,"epId":6,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}}},"_id":"C3iG1reA9lRCC7d8"}
{"id":2,"type":"Router","ieeeAddr":"0x00158d0001deec28","nwkAddr":4491,"manufId":4619,"manufName":"HEIMAN","powerSource":"Mains (single phase)","modelId":"GASSensor-N","epList":[1],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1280],"outClusterList":[25],"clusters":{"genBasic":{"dir":{"value":1},"attrs":{"zclVersion":1,"appVersion":18,"stackVersion":2,"hwVersion":16,"manufacturerName":"HEIMAN","modelId":"GASSensor-N","dateCode":"2018.3.10","powerSource":1}},"genIdentify":{"dir":{"value":1},"attrs":{"identifyTime":0}},"genOta":{"dir":{"value":2},"attrs":{}},"ssIasZone":{"dir":{"value":1},"attrs":{"zoneState":0,"zoneType":43,"zoneStatus":32,"iasCieAddr":"0x0000000000000000","zoneId":255}}}}},"_id":"zyfYXK7CTY9kbcbH"}
{"id":1,"type":"Coordinator","ieeeAddr":"0x00124b0018e1b298","nwkAddr":0,"manufId":0,"epList":[1,2,3,4,5,6,11],"status":"online","joinTime":1548952599,"endpoints":{"1":{"profId":260,"epId":1,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"2":{"profId":257,"epId":2,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"3":{"profId":261,"epId":3,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"4":{"profId":263,"epId":4,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"5":{"profId":264,"epId":5,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"6":{"profId":265,"epId":6,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"11":{"profId":260,"epId":11,"devId":1024,"inClusterList":[0,1281,3],"outClusterList":[1280,1282,3],"clusters":{"genBasic":{"dir":{"value":1},"acls":{"zclVersion":"R","hwVersion":"R","manufacturerName":"R","modelId":"R","dateCode":"R","powerSource":"R","locationDesc":"RW","physicalEnv":"RW","deviceEnabled":"RW"},"attrs":{"zclVersion":1,"hwVersion":1,"manufacturerName":"sivann inc.","modelId":"hiver0001","dateCode":"20170407","powerSource":1,"locationDesc":" ","physicalEnv":0,"deviceEnabled":1}},"ssIasAce":{"dir":{"value":1}},"ssIasZone":{"dir":{"value":2},"cmdRsps":{"enrollReq":{"exec":"exec"},"statusChangeNotification":{"exec":"exec"}}},"ssIasWd":{"dir":{"value":2}},"genIdentify":{"dir":{"value":3},"acls":{"identifyTime":"RW"},"attrs":{"identifyTime":0}}}}},"_id":"C3iG1reA9lRCC7d8"}
`
and configuration.yaml
advanced: log_level: debug devices: '0x00158d0001deec28': friendly_name: Gas Sensor retain: false homeassistant: true mqtt: base_topic: zigbee2mqtt password: my_password server: mqtt://homeassistant user: my_username zigbee_shepherd_devices: true permit_join: false serial: disable_led: true port: /dev/ttyACM0