#pragma once

#define AUTOMATION_ID_KEY                               "i"
#define AUTOMATION_ENABLE_KEY                           "e"
#define AUTOMATION_IS_NEED_ALL_CONDITIONS_KEY           "inac"


#define AUTOMATION_SCHEDULE_WEEKDAY_KEY                 "wr"
#define AUTOMATION_SCHEDULE_DATE_KEY                    "dr"
#define AUTOMATION_SCHEDULE_TIME_KEY                    "tr"
#define AUTOMATION_SCHEDULE_TYPE_KEY                    "r"
#define AUTOMATION_SCHEDULE_KEY                         "s"

#define AUTOMATION_VALUE_EVALUATION_START_KEY           "s"
#define AUTOMATION_VALUE_EVALUATION_END_KEY             "e"
#define AUTOMATION_VALUE_EVALUATION_START_CONDITION_KEY "sc"
#define AUTOMATION_VALUE_EVALUATION_END_CONDITION_KEY   "ec"
#define AUTOMATION_VALUE_EVALUATION_RANGES_KEY          "r"
#define AUTOMATION_VALUE_EVALUATION_IOV_KEY             "iov"

#define AUTOMATION_VALUE_EVALUATION_TEMPLATE_KEY        "t"
#define AUTOMATION_VALUE_EVALUATION_CONFIG_KEY          "c"
#define AUTOMATION_VALUE_EVALUATION_KEY                 "ve"

#define AUTOMATION_VALUE_CHANGE_CONDITION_KEY           "c"
#define AUTOMATION_VALUE_CHANGE_VALUE_KEY               "v"
#define AUTOMATION_VALUE_CHANGE_SCALE_KEY               "s"
#define AUTOMATION_VALUE_CHANGE_CONFIG_KEY              "c2"
#define AUTOMATION_VALUE_CHANGE_KEY                     "vc"

#define AUTOMATION_CONDITION_ID_KEY                     "i"
#define AUTOMATION_CONDITIONS_KEY                       "c"


#define AUTOMATION_ARDUINO_ID_KEY                       "i"
#define AUTOMATION_ARDUINO_PIN_KEY                      "p"
#define AUTOMATION_ARDUINO_PIN_NUMBER_KEY               "pn"
#define AUTOMATION_ARDUINO_VALUE_KEY                    "v"
#define AUTOMATION_ARDUINO_VALUE_TYPE_KEY               "vt"
#define AUTOMATION_ARDUINO_VIRTUAL_PIN_KEY              "vp"
#define AUTOMATION_ARDUINO_ACTION_KEY                   "aa"

#define AUTOMATION_MODBUS_ID_KEY                        "i"
#define AUTOMATION_MODBUS_VALUE_KEY                     "v"
#define AUTOMATION_MODBUS_ALIAS_KEY                     "k"
#define AUTOMATION_MODBUS_ACTION_KEY                    "ma"

#define AUTOMATION_ZIGBEE_ID_KEY                        "i"
#define AUTOMATION_ZIGBEE_VALUE_KEY                     "v"
#define AUTOMATION_ZIGBEE_CONTROL_PAYLOAD_KEY           "cp"
#define AUTOMATION_ZIGBEE_IEEE_KEY                      "ia"
#define AUTOMATION_ZIGBEE_DEVICE_KEY                    "d"
#define AUTOMATION_ZIGBEE_ACTION_KEY                    "za"

#define AUTOMATION_SMS_PHONE_KEY                        "p"
#define AUTOMATION_SMS_MESSAGE_KEY                      "m"

#define AUTOMATION_ACTION_SCRIPT_KEY                    "as"
#define AUTOMATION_ACTION_DELAY_KEY                     "ds"
#define AUTOMATION_ACTION_DATA_KEY                      "da"
#define AUTOMATION_ACTION_NOTIFICATION_KEY              "ns"
#define AUTOMATION_ACTION_EMAIL_KEY                     "es"
#define AUTOMATION_ACTION_SMS_KEY                       "ss"
#define AUTOMATION_ACTIONS_KEY                          "a"
