Skip to content

Commit

Permalink
Autocommit: Config at 2024-09-30 11:59:42
Browse files Browse the repository at this point in the history
  • Loading branch information
avbor committed Sep 30, 2024
1 parent 6bd5340 commit 65ddf21
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
- name: CH Water Pump Status
unique_id: dc675ac6-f4d0-4f64-b575-adf974639020
device_class: power
state: "{{ (states('sensor.gosund_sp111_11_watt') | float(0)) > 1000 }}"
state: "{{ (states('sensor.sonoff_pow_r3_02_power') | float(0)) > 1000 }}"
icon: mdi:water-pump
31 changes: 13 additions & 18 deletions esphome/sonoff-pow-r3-01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ substitutions:
esp_board: nodemcu-32s
board_name: sonoff-pow-r3-01
room_name: Country House
cse7766_update_interval: 5s
cse7766_update_interval: 2s

packages:
wifi: !include common/wifi_ch.yaml
Expand All @@ -12,16 +12,17 @@ esp32:
framework:
type: esp-idf

#wifi:
# use_address: 192.168.10.149
wifi:
use_address: 192.168.10.226

web_server:
port: 80

improv_serial: !remove

logger:
baud_rate: 0
level: INFO
#baud_rate: 0

uart:
rx_pin: GPIO16
Expand Down Expand Up @@ -70,15 +71,15 @@ sensor:
unit_of_measurement: °C
id: esp32_temp

# - platform: template
# name: ${board_name} Power Factor
# device_class: power_factor
# id: power_factor
# lambda: return id(w_sensor).state / id(v_sensor).state / id(a_sensor).state;
#- platform: template
# name: ${board_name} Power Factor
# device_class: power_factor
# id: power_factor
# lambda: return id(w_sensor).state / id(v_sensor).state / id(a_sensor).state;

- platform: esp32_hall
name: ${board_name} ESP32 Hall Sensor
update_interval: 60s
#- platform: esp32_hall
# name: ${board_name} ESP32 Hall Sensor
# update_interval: 60s

binary_sensor:
- platform: gpio
Expand Down Expand Up @@ -163,14 +164,8 @@ switch:
on_turn_off:
- delay: 500ms
- light.turn_off: switch_led
- platform: restart
name: ${board_name} Restart

text_sensor:
- platform: template
name: ${board_name} Uptime
id: uptime_human
icon: mdi:clock-start
- platform: wifi_info
ip_address:
name: ${board_name} IP
Expand Down
21 changes: 8 additions & 13 deletions esphome/sonoff-pow-r3-02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ substitutions:
esp_board: nodemcu-32s
board_name: sonoff-pow-r3-02
room_name: Country House
cse7766_update_interval: 5s
cse7766_update_interval: 2s

packages:
wifi: !include common/wifi_ch.yaml
Expand All @@ -12,16 +12,17 @@ esp32:
framework:
type: esp-idf

#wifi:
# use_address: 192.168.10.149
wifi:
use_address: 192.168.10.154

web_server:
port: 80

improv_serial: !remove

logger:
baud_rate: 0
level: INFO
#baud_rate: 0

uart:
rx_pin: GPIO16
Expand Down Expand Up @@ -76,9 +77,9 @@ sensor:
# id: power_factor
# lambda: return id(w_sensor).state / id(v_sensor).state / id(a_sensor).state;

- platform: esp32_hall
name: ${board_name} ESP32 Hall Sensor
update_interval: 60s
# - platform: esp32_hall
# name: ${board_name} ESP32 Hall Sensor
# update_interval: 60s

binary_sensor:
- platform: gpio
Expand Down Expand Up @@ -163,14 +164,8 @@ switch:
on_turn_off:
- delay: 500ms
- light.turn_off: switch_led
- platform: restart
name: ${board_name} Restart

text_sensor:
- platform: template
name: ${board_name} Uptime
id: uptime_human
icon: mdi:clock-start
- platform: wifi_info
ip_address:
name: ${board_name} IP
Expand Down
17 changes: 14 additions & 3 deletions lovelace/views/vi_ch_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,26 @@ cards:
### <center>Розетки</center>
- type: entities
entities:
- entity: switch.gosund_sp111_11_switch
- entity: switch.sonoff_pow_r3_02
name: Насос
icon: mdi:water-pump
- entity: sensor.gosund_sp111_11_watt
- entity: sensor.sonoff_pow_r3_02_power
type: custom:multiple-entity-row
name: "Потребление"
icon: []
entities:
- entity: sensor.gosund_sp111_11_ampere
- entity: sensor.sonoff_pow_r3_02_current
name: false
- entity: switch.sonoff_pow_r3_01
name: Септик
#icon: mdi:toilet
icon: mdi:biohazard
- entity: sensor.sonoff_pow_r3_01_power
type: custom:multiple-entity-row
name: "Потребление"
icon: []
entities:
- entity: sensor.sonoff_pow_r3_01_current
name: false
- entity: switch.gosund_sp111_01_switch
name: Бойлер
Expand Down
4 changes: 2 additions & 2 deletions packages/country_house/pack_ch_energy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -512,15 +512,15 @@ ch_energy_pack:
socket_ch_water_pump_energy_daily:
unique_id: fdd4ae5c-8671-4785-a1f5-664270929cdb
name: Water Pump Daily Energy
source: sensor.gosund_sp111_11_todays_usage
source: sensor.sonoff_pow_r3_02_total_daily_energy
cycle: daily
tariffs:
- total

socket_ch_water_pump_energy_monthly:
unique_id: e1d44185-e5fb-40ae-a7fb-67048f72baaa
name: Water Pump Monthly Energy
source: sensor.gosund_sp111_11_todays_usage
source: sensor.sonoff_pow_r3_02_total_daily_energy
cycle: monthly
tariffs:
- total
Expand Down
6 changes: 3 additions & 3 deletions packages/country_house/pack_ch_misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ ch_misc_pack:
entity_id: switch.gosund_sp111_01_switch
from: "off"
to: "on"
condition: "{{ is_state('switch.gosund_sp111_11_switch', 'off') }}"
condition: "{{ is_state('switch.sonoff_pow_r3_02', 'off') }}"
action:
- service: switch.turn_on
target:
entity_id: switch.gosund_sp111_11_switch
entity_id: switch.sonoff_pow_r3_02

- alias: Дача - Насос - Оповещение о состоянии
id: 5db218dd-eef9-45ab-aa9f-f9e814fdfe62
trigger:
- platform: state
entity_id: switch.gosund_sp111_11_switch
entity_id: switch.sonoff_pow_r3_02
not_from:
- unavailable
- unknown
Expand Down

0 comments on commit 65ddf21

Please sign in to comment.