Update README.md

This commit is contained in:
ElVit 2025-02-21 21:54:46 +01:00 committed by GitHub
parent f8c055f164
commit 0bed3d930a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -569,6 +569,8 @@ sensor:
lambda: |-
// get the requried byte
int byte = my_heatpump->getResponseByte(46);
// a valid byte range is 0x00-0xFF
// do not update if the byte is invalid
if (byte < 0) return {};
// convert the byte (see HeishaMon/ProtocolByteDecrypt.md)
// in this case -128
@ -581,6 +583,8 @@ text_sensor:
lambda: |-
// get the requried byte
int byte = my_heatpump->getResponseByte(9);
// a valid byte range is 0x00-0xFF
// do not update if the byte is invalid
if (byte < 0) return {};
// convert the byte (see HeishaMon/ProtocolByteDecrypt.md)
// in this case 3rd and 4th bit (--> b0011 0000)
@ -588,7 +592,7 @@ text_sensor:
// set text
if (state == 0) return { "Standard" };
if (state == 1) return { "DHW" };
// if state is unkown do not update text
// if state is unkown do not update
return {};
```