From e820301490122823c39eede773d76e67d2caac22 Mon Sep 17 00:00:00 2001 From: Ollo Date: Tue, 23 Aug 2022 20:26:11 +0200 Subject: [PATCH] Tweak state numbers --- esp32/include/HomieTypes.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/esp32/include/HomieTypes.h b/esp32/include/HomieTypes.h index 81d505c..14fd2a1 100644 --- a/esp32/include/HomieTypes.h +++ b/esp32/include/HomieTypes.h @@ -52,18 +52,18 @@ static const char *SENSOR_STRING[] = { * @brief State of plants * */ -#define PLANTSTATE_NUM_DEACTIVATED 0xF000 -#define PLANTSTATE_NUM_NO_SENSOR 0xE000 -#define PLANTSTATE_NUM_WET 0x0100 -#define PLANTSTATE_NUM_SUNNY_ALARM 0x0021 -#define PLANTSTATE_NUM_ACTIVE_ALARM 0x0201 -#define PLANTSTATE_NUM_ACTIVE_SUPESSED 0x001F -#define PLANTSTATE_NUM_ACTIVE 0x0200 -#define PLANTSTATE_NUM_SUNNY 0x0020 -#define PLANTSTATE_NUM_COOLDOWN_ALARM 0x0031 -#define PLANTSTATE_NUM_COOLDOWN 0x0030 -#define PLANTSTATE_NUM_AFTERWORK_ALARM 0x0041 -#define PLANTSTATE_NUM_AFTERWORK 0x0040 +#define PLANTSTATE_NUM_DEACTIVATED -1 +#define PLANTSTATE_NUM_NO_SENSOR -2 +#define PLANTSTATE_NUM_WET 0x00 +#define PLANTSTATE_NUM_SUNNY_ALARM 0x11 +#define PLANTSTATE_NUM_ACTIVE_ALARM 0x41 +#define PLANTSTATE_NUM_ACTIVE_SUPESSED -3 +#define PLANTSTATE_NUM_ACTIVE 0x40 +#define PLANTSTATE_NUM_SUNNY 0x10 +#define PLANTSTATE_NUM_COOLDOWN_ALARM 0x21 +#define PLANTSTATE_NUM_COOLDOWN 0x20 +#define PLANTSTATE_NUM_AFTERWORK_ALARM 0x31 +#define PLANTSTATE_NUM_AFTERWORK 0x30 #define PLANTSTATE_STR_DEACTIVATED "deactivated" #define PLANTSTATE_STR_NO_SENSOR "nosensor"