esphome weather staion v5

This commit is contained in:
root
2024-06-14 23:38:45 +12:00
parent 6ff9e38e5f
commit efaaf8c678

View File

@@ -224,14 +224,14 @@ mqtt:
#Method to prevent deep sleep using MQTT command
#on_message:
#- topic: ${mqtt_topic}/${devicename}/deepsleep
#payload: 'ON'
#then:
#- deep_sleep.prevent: deep_sleep_1
#- topic: ${mqtt_topic}/${devicename}/deepsleep
#payload: 'ON'
#then:
#- deep_sleep.enter: deep_sleep_1
# - topic: ${mqtt_topic}/${devicename}/deepsleep
# payload: 'ON'
# then:
# - deep_sleep.prevent: deep_sleep_1
# - topic: ${mqtt_topic}/${devicename}/deepsleep
# payload: 'ON'
# then:
# - deep_sleep.enter: deep_sleep_1
########################################
# Deep Sleep
@@ -253,11 +253,11 @@ status_led:
inverted: false
#ignore_strapping_warning: True #https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
################################
# 4 Input A->D sensor
# Analog sensor for voltage reading
# https://esphome.io/components/sensor/ads1115.html
################################
################################
# 4 Input A->D sensor
# Analog sensor for voltage reading
# https://esphome.io/components/sensor/ads1115.html
################################
ads1115:
- 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(dht_temp).state
) / 2;
) / 2;
################################
# BATTERY VOLTAGE
@@ -524,15 +524,6 @@ sensor:
max_value: 250 #if anything over that, we have debounce issues or are going to die
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
# Template for wind gust measurements
@@ -605,7 +596,7 @@ sensor:
} else if (id(wind_meter_scale).state >= 33) {
id(wind_scale).publish_state("Hurricane Force");
} else {
id(wind_scale).publish_state("");
id(wind_scale).publish_state({""});
}
#############################################
@@ -636,7 +627,7 @@ sensor:
################################################################
# 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
# (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) {
id(wind_dir_heading).publish_state("W");
} else {
id(wind_dir_heading).publish_state("");
id(wind_dir_heading).publish_state({});
}