mirror of
https://github.com/0015/ThatProject.git
synced 2026-05-02 23:51:10 +03:00
Building a Smart Home with MQTT: Two-Way Communication using Home Assistant and ESP32
This commit is contained in:
14
ESP32_MQTT/Base_ESP32_HomeAssistant/ha_config.h
Normal file
14
ESP32_MQTT/Base_ESP32_HomeAssistant/ha_config.h
Normal file
@@ -0,0 +1,14 @@
|
||||
//#define CONFIG_BROKER_URL "mqtt://homeassistant.local"
|
||||
#define CONFIG_BROKER_URL "192.168.50.154"
|
||||
#define CONFIG_BROKER_USERNAME "MQTT_Indicator_1"
|
||||
#define CONFIG_BROKER_PASSWORD "1234"
|
||||
|
||||
#define CONFIG_TOPIC_SENSOR_DATA "indicator/sensor"
|
||||
|
||||
#define CONFIG_SENSOR_BUILDIN_CO2_VALUE_KEY "co2"
|
||||
#define CONFIG_SENSOR_BUILDIN_TVOC_VALUE_KEY "tvoc"
|
||||
#define CONFIG_SENSOR_BUILDIN_TEMP_VALUE_KEY "temp"
|
||||
#define CONFIG_SENSOR_BUILDIN_HUMIDITY_VALUE_KEY "humidity"
|
||||
|
||||
#define CONFIG_TOPIC_SWITCH_STATE "indicator/switch/state"
|
||||
#define CONFIG_TOPIC_SWITCH_SET "indicator/switch/set"
|
||||
Reference in New Issue
Block a user