Skip to content
Snippets Groups Projects
Commit 81cbc498 authored by Jan Grewe's avatar Jan Grewe
Browse files

clean up Nous A1T template and rename stuff for displayed order

parent fd25098f
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,7 @@ web_server: ...@@ -43,6 +43,7 @@ web_server:
# include_internal: true # include_internal: true
prometheus: prometheus:
# include_internal: true
sensor: sensor:
- platform: wifi_signal - platform: wifi_signal
......
...@@ -9,7 +9,7 @@ time: ...@@ -9,7 +9,7 @@ time:
light: light:
- platform: status_led - platform: status_led
id: "led_status" id: led_status
pin: pin:
number: GPIO13 number: GPIO13
inverted: true inverted: true
...@@ -17,18 +17,18 @@ light: ...@@ -17,18 +17,18 @@ light:
binary_sensor: binary_sensor:
# toggle relay on/off # toggle relay on/off
- platform: gpio - platform: gpio
id: "button_state" id: button_state
pin: pin:
number: GPIO00 number: GPIO00
mode: INPUT_PULLUP mode: INPUT_PULLUP
on_press: on_press:
- switch.toggle: "power" - switch.toggle: power
switch: switch:
- platform: template - platform: template
name: "Power" name: "Power"
optimistic: true optimistic: true
id: "power" id: power
lambda: |- lambda: |-
if (id(relay).state) { if (id(relay).state) {
return true; return true;
...@@ -36,19 +36,19 @@ switch: ...@@ -36,19 +36,19 @@ switch:
return false; return false;
} }
turn_on_action: turn_on_action:
- switch.turn_on: "relay" - switch.turn_on: relay
- light.turn_on: "led_status" - light.turn_on: led_status
turn_off_action: turn_off_action:
- switch.turn_off: "relay" - switch.turn_off: relay
- light.turn_off: "led_status" - light.turn_off: led_status
- platform: gpio - platform: gpio
id: relay id: relay
pin: GPIO14 pin: GPIO14
sensor: sensor:
- platform: total_daily_energy - platform: total_daily_energy
name: "Electric Consumption [kWh]" name: "Daily Consumption"
power_id: "nous_a1t_watt" power_id: watt
filters: filters:
# Multiplication factor from W to kW is 0.001 # Multiplication factor from W to kW is 0.001
- multiply: 0.001 - multiply: 0.001
...@@ -75,11 +75,12 @@ sensor: ...@@ -75,11 +75,12 @@ sensor:
accuracy_decimals: 3 accuracy_decimals: 3
voltage: voltage:
name: "Voltage" name: "Volt"
unit_of_measurement: V unit_of_measurement: V
accuracy_decimals: 1 accuracy_decimals: 1
power: power:
name: "Power" id: watt
id: "nous_a1t_watt" name: "Watt"
unit_of_measurement: W unit_of_measurement: W
accuracy_decimals: 1
...@@ -41,14 +41,14 @@ sensor: ...@@ -41,14 +41,14 @@ sensor:
update_interval: 5s update_interval: 5s
temperature: temperature:
id: temperature id: temperature
name: "Temperature" name: "Sensor: Temperature"
accuracy_decimals: 2 accuracy_decimals: 2
on_value: on_value:
then: then:
- script.execute: fan_control - script.execute: fan_control
humidity: humidity:
id: humidity id: humidity
name: "Humidity" name: "Sensor: Humidity"
accuracy_decimals: 2 accuracy_decimals: 2
on_value: on_value:
then: then:
...@@ -56,12 +56,12 @@ sensor: ...@@ -56,12 +56,12 @@ sensor:
pressure: pressure:
id: pressure id: pressure
accuracy_decimals: 2 accuracy_decimals: 2
name: "Pressure" name: "Sensor: Pressure"
- platform: dallas - platform: dallas
index: 0 index: 0
id: temperature_water id: temperature_water
name: "Water Temperature" name: "Sensor: Water Temperature"
accuracy_decimals: 2 accuracy_decimals: 2
# requires: https://github.com/esphome/feature-requests/issues/1746 # requires: https://github.com/esphome/feature-requests/issues/1746
...@@ -99,49 +99,49 @@ sensor: ...@@ -99,49 +99,49 @@ sensor:
select: select:
- platform: template - platform: template
id: schedule id: schedule
name: "Light Schedule" name: "Light: Schedule"
options: ["Disabled", "Grow", "Bloom"] options: ["Disabled", "Grow", "Bloom"]
initial_option: "Disabled" initial_option: "Disabled"
optimistic: true optimistic: true
restore_value: true restore_value: true
- platform: template - platform: template
id: temperature_max id: temperature_max
name: "Temperature: Fan On" name: "Fan: Temperature On"
options: ["21", "22", "23", "24", "25", "26", "27", "28", "29"] options: ["21", "22", "23", "24", "25", "26", "27", "28", "29"]
initial_option: "27" initial_option: "27"
optimistic: true optimistic: true
restore_value: true restore_value: true
- platform: template - platform: template
id: temperature_hysteresis id: temperature_hysteresis
name: "Temperature: Fan Hysteresis" name: "Fan: Temperature Hysteresis"
options: ["1", "2", "3", "4", "5"] options: ["1", "2", "3", "4", "5"]
initial_option: "2" initial_option: "2"
optimistic: true optimistic: true
restore_value: true restore_value: true
- platform: template - platform: template
id: temperature_min id: temperature_min
name: "Temperature: Fan Off" name: "Fan: Temperature Off"
options: ["19", "20", "21", "22", "23", "24", "25"] options: ["19", "20", "21", "22", "23", "24", "25"]
initial_option: "21" initial_option: "21"
optimistic: true optimistic: true
restore_value: true restore_value: true
- platform: template - platform: template
id: humidity_max id: humidity_max
name: "Humidity: Fan On" name: "Fan: Humidity On"
options: ["40", "45", "50", "55", "60", "65", "70", "75"] options: ["40", "45", "50", "55", "60", "65", "70", "75"]
initial_option: "70" initial_option: "70"
optimistic: true optimistic: true
restore_value: true restore_value: true
- platform: template - platform: template
id: humidity_hysteresis id: humidity_hysteresis
name: "Humidity: Fan Hysteresis" name: "Fan: Humidity Hysteresis"
options: ["5", "10", "15"] options: ["5", "10", "15"]
initial_option: "5" initial_option: "5"
optimistic: true optimistic: true
restore_value: true restore_value: true
- platform: template - platform: template
id: humidity_min id: humidity_min
name: "Humidity: Fan Off" name: "Fan: Humidity Off"
options: ["20", "25", "30", "35", "40", "45", "50"] options: ["20", "25", "30", "35", "40", "45", "50"]
initial_option: "40" initial_option: "40"
optimistic: true optimistic: true
...@@ -150,7 +150,7 @@ select: ...@@ -150,7 +150,7 @@ select:
switch: switch:
- platform: template - platform: template
id: propbox_light id: propbox_light
name: "Light Status" name: "Status: Light"
optimistic: true optimistic: true
turn_on_action: turn_on_action:
- http_request.post: - http_request.post:
...@@ -160,7 +160,7 @@ switch: ...@@ -160,7 +160,7 @@ switch:
url: http://${hostname_light}/switch/power/turn_off url: http://${hostname_light}/switch/power/turn_off
- platform: template - platform: template
id: propbox_fan id: propbox_fan
name: "Fan Status" name: "Status: Fan"
optimistic: true optimistic: true
turn_on_action: turn_on_action:
- http_request.post: - http_request.post:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment