DomiStyle / esphome-dlms-meter

ESPHome component to read out DLMS smart meters via M-Bus
MIT License
100 stars 24 forks source link

Tinetz Honeywell "/config/esphome/meter01.yaml:164:27: error: invalid conversion from 'const char*' to 'uint8_t*' {aka 'unsigned char*'} [-fpermissive]" #32

Closed ert666 closed 11 months ago

ert666 commented 11 months ago

Hi, I really like that project!

I got a Honeywell Smartmeter from Tinetz and the Accesscode has 32 digits.

What I did besides changing the platform... I replaced the section: uint8_t key[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; Changing it to ,32 times doesn´t work... dlms_meter->set_key(**"123456789A123456789A123456789A12"**, **32**); // Pass your decryption key and key length here

in my meter yaml

The message is: /config/esphome/meter01.yaml:164:27: error: invalid conversion from 'const char*' to 'uint8_t*' {aka 'unsigned char*'} [-fpermissive]

I am sure I am causing the problem but maybe it is just putting the Key into the wrong place, forgetting something or...

thx Berni

ert666 commented 11 months ago

Key on the wrong position sry