alworx

Results comments of alworx

I merged converter code from other devices and got the switch + power metering running with this custom converter: ``` const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); const tz = require('zigbee-herdsman-converters/converters/toZigbee'); const exposes...

> I have no luck with the converter :/ > > Zigbee2MQTT:error 2022-11-20 22:11:51: Failed to configure 'light_outdoor_01', attempt 1 (Error: Read 0xa4c138bc7ea3a6b3/1 genBasic(["manufacturerName","zclVersion","appVersion","modelId","powerSource"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Timeout - 40765 -...

> Yes, i confirm this is working. The current reads about 0.08-0-07 amps more (also with no load), but the rest is working perfectly. Try `current_calibration`: ![image](https://user-images.githubusercontent.com/26901441/205264910-57b32aaf-4b33-475a-b561-1883a26cacd9.png)

I second that :) Maybe you and/or mauser want to have a look and test my first contribution to this wonderful project: https://github.com/alworx/hydrogen/commit/e898cbc81f2486c8add5ed0cc9620a8c4331678b (Sorry for the commit-mess, had some troubles...

> Try that .. IMHO much more readable ;-) A choice of flavour, I'd say - I'd agree that your proposal is more readable, but I usually value consistent coding...

@xjjx: Just following the [coding conventions](https://github.com/hydrogen-music/hydrogen/blob/master/DEVELOPERS), but I'm perfectly fine with your codesnippet - I'll issue a pull request and let the maintainer decide :)