j0ta29 / esphome

ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
https://esphome.io/
Other
6 stars 2 forks source link

3 Byte Data - feature request #14

Open 80morpheus opened 1 month ago

80morpheus commented 1 month ago

@j0ta29 @bertmelis

thanks for your great work. im already testing your library and its working perfect for me.

In some of the heatpumps there are 3 byte values. for example the outside temperature "AUSSEN" with address 0x01C1 shown in https://github.com/openv/openv/wiki/Adressen-W%C3%A4rmepumpen-Vitotronic-WO1C

for now im just using the vitoconnect library from dannerph https://github.com/dannerph/esphome_vitoconnect/tree/master i just added some code in the vitoconnect_sensor.cpp -> if (_length == 3){ int16_t tmp = 0; tmp = data[2] << 16 | data[1] << 8 | data[0]; float value = tmp / 1.0f; publish_state(value); }

it would awesome if you could add something similar to your librarys in the VitoWifi DPTypes.cpp adding some conv3_1_US in the esphome part there is i think something more to do.