mirror of
https://github.com/anklimov/lighthub
synced 2025-12-10 13:49:50 +03:00
commands are case insensetive now
new commands for HVAC/Thermostates core logic fixes: Group channel logic& stats RGBx color change cmd will turn chan on Modbus fm driver shutdown on alarm deadlock fixed hsv bit flag in channels RAM profile added MQTT send empty command for OH fixed ON for thermostat causes HEAT string to stat topic (to be compatible with homekit & home assistant)
This commit is contained in:
@@ -66,7 +66,9 @@ e-mail anklimov@gmail.com
|
||||
#define CMD_HEAT 0xa
|
||||
#define CMD_COOL 0xb
|
||||
#define CMD_AUTO 0xc
|
||||
#define CMD_SET 0xe
|
||||
#define CMD_FAN 0xd
|
||||
#define CMD_DRY 0xe
|
||||
#define CMD_SET 0xf
|
||||
#define CMD_CURTEMP 0xf
|
||||
#define CMD_MASK 0xf
|
||||
#define FLAG_MASK 0xf0
|
||||
@@ -104,17 +106,20 @@ extern short thermoSetCurTemp(char *name, float t);
|
||||
|
||||
int txt2cmd (char * payload);
|
||||
|
||||
#pragma pack(push, 1)
|
||||
typedef union
|
||||
{
|
||||
long int aslong;
|
||||
struct
|
||||
{
|
||||
int16_t h;
|
||||
int16_t hsv_flag:1;
|
||||
int16_t h:15;
|
||||
int8_t s;
|
||||
int8_t v;
|
||||
};
|
||||
} HSVstore;
|
||||
|
||||
|
||||
typedef union
|
||||
{
|
||||
long int aslong;
|
||||
@@ -126,6 +131,7 @@ typedef union
|
||||
int8_t w;
|
||||
};
|
||||
} RGBWstore;
|
||||
#pragma pack(pop)
|
||||
|
||||
class Item
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user