esphome weather staion v5
This commit is contained in:
@@ -224,14 +224,14 @@ mqtt:
|
|||||||
|
|
||||||
#Method to prevent deep sleep using MQTT command
|
#Method to prevent deep sleep using MQTT command
|
||||||
#on_message:
|
#on_message:
|
||||||
#- topic: ${mqtt_topic}/${devicename}/deepsleep
|
# - topic: ${mqtt_topic}/${devicename}/deepsleep
|
||||||
#payload: 'ON'
|
# payload: 'ON'
|
||||||
#then:
|
# then:
|
||||||
#- deep_sleep.prevent: deep_sleep_1
|
# - deep_sleep.prevent: deep_sleep_1
|
||||||
#- topic: ${mqtt_topic}/${devicename}/deepsleep
|
# - topic: ${mqtt_topic}/${devicename}/deepsleep
|
||||||
#payload: 'ON'
|
# payload: 'ON'
|
||||||
#then:
|
# then:
|
||||||
#- deep_sleep.enter: deep_sleep_1
|
# - deep_sleep.enter: deep_sleep_1
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Deep Sleep
|
# Deep Sleep
|
||||||
@@ -253,11 +253,11 @@ status_led:
|
|||||||
inverted: false
|
inverted: false
|
||||||
#ignore_strapping_warning: True #https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
|
#ignore_strapping_warning: True #https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# 4 Input A->D sensor
|
# 4 Input A->D sensor
|
||||||
# Analog sensor for voltage reading
|
# Analog sensor for voltage reading
|
||||||
# https://esphome.io/components/sensor/ads1115.html
|
# https://esphome.io/components/sensor/ads1115.html
|
||||||
################################
|
################################
|
||||||
ads1115:
|
ads1115:
|
||||||
- address: 0x48 #On the ADS1115 pull address pin to VCC for 0x49. Default is 0x48
|
- address: 0x48 #On the ADS1115 pull address pin to VCC for 0x49. Default is 0x48
|
||||||
|
|
||||||
@@ -354,7 +354,7 @@ sensor:
|
|||||||
id(bmp280_temp).state
|
id(bmp280_temp).state
|
||||||
+
|
+
|
||||||
id(dht_temp).state
|
id(dht_temp).state
|
||||||
) / 2;
|
) / 2;
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# BATTERY VOLTAGE
|
# BATTERY VOLTAGE
|
||||||
@@ -524,15 +524,6 @@ sensor:
|
|||||||
max_value: 250 #if anything over that, we have debounce issues or are going to die
|
max_value: 250 #if anything over that, we have debounce issues or are going to die
|
||||||
ignore_out_of_range: true
|
ignore_out_of_range: true
|
||||||
|
|
||||||
# - platform: pulse_counter
|
|
||||||
# # https://community.home-assistant.io/t/measuring-wind-speed/395693
|
|
||||||
# id: wind_pulses
|
|
||||||
# pin:
|
|
||||||
# number: GPIO14 #D5 on D1 Mini
|
|
||||||
# mode:
|
|
||||||
# input: true
|
|
||||||
# pullup: true
|
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# WIND 10 MINUTE MAX
|
# WIND 10 MINUTE MAX
|
||||||
# Template for wind gust measurements
|
# Template for wind gust measurements
|
||||||
@@ -605,7 +596,7 @@ sensor:
|
|||||||
} else if (id(wind_meter_scale).state >= 33) {
|
} else if (id(wind_meter_scale).state >= 33) {
|
||||||
id(wind_scale).publish_state("Hurricane Force");
|
id(wind_scale).publish_state("Hurricane Force");
|
||||||
} else {
|
} else {
|
||||||
id(wind_scale).publish_state("");
|
id(wind_scale).publish_state({""});
|
||||||
}
|
}
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
@@ -636,7 +627,7 @@ sensor:
|
|||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# CONVERT VOLTAGE TO HEADING
|
# CONVERT VOLTAGE TO HEADING
|
||||||
# Current version used only has 8 heding points, some have 16.
|
# Version used here only has 8 heading points, some have 16.
|
||||||
#
|
#
|
||||||
# Bear R Head Meas'd Max Min
|
# Bear R Head Meas'd Max Min
|
||||||
# (deg) (Ohms) Volts V+1% V-1%
|
# (deg) (Ohms) Volts V+1% V-1%
|
||||||
@@ -677,7 +668,7 @@ sensor:
|
|||||||
} else if (id(wind_direction_voltage).state >= 3.15414 && id(wind_direction_voltage).state <= 3.21786) {
|
} else if (id(wind_direction_voltage).state >= 3.15414 && id(wind_direction_voltage).state <= 3.21786) {
|
||||||
id(wind_dir_heading).publish_state("W");
|
id(wind_dir_heading).publish_state("W");
|
||||||
} else {
|
} else {
|
||||||
id(wind_dir_heading).publish_state("");
|
id(wind_dir_heading).publish_state({});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user