● HA작업중)에너지 미터 일간 월간 센서 구성하기
♨ 카랜더 일정 :
2024년11월26일
링크
첨부
본문
● 에너지 미터 일간 월간 센서 구성하기
sensor.power_meter_2port_power_a는 현제 에너지 측정 값 입니다
다음을 구성하기 위한 준비
sensor.2port_power_k_total_energy_consumption
sensor. utility_meter_daily_2port_power_consumption
sensor.last_period_utility_meter_daily_2port_power_consumption
sensor.utility_meter_monthly_2port_power_consumption
sensor.last_period_utility_meter_monthly_2port_power_consumption
=======================================
sensor.2port_power_k_total_energy_consumption
구성은
1) integration 하여 Kwh 로 변경 작업 합니다 >> 금일 전력 사용량 입니다
# ********************************************************************* # 2024_1126_1449_31
# /config/sensor.yaml
# 2-Port Power Total Energy Consumption # 2port_power_k_total_energy_consumption
- platform: integration
name: 2port_power_k_total_energy_consumption
source: sensor.power_meter_2port_power_a
unit_time: h
method: trapezoidal
unit_prefix: k
round: 3
# ********************************************************************* # 2024_1126_1449_31
sensor. utility_meter_daily_2port_power_consumption
sensor.utility_meter_monthly_2port_power_consumption
는
utility_meter_daily_2port_power_consumption:
source: sensor.2port_power_k_total_energy_consumption
cycle: daily
utility_meter_monthly_2port_power_consumption:
source: sensor.2port_power_k_total_energy_consumption
cycle: monthly
offset:
days: 25
sensor.last_period_utility_meter_monthly_2port_power_consumption
# 어제전력사용량 utility_meter_daily_power_meter_2port_power_a
- sensor:
- name: "last_period_utility_meter_daily_2port_power_consumption"
unique_id: last_period_utility_meter_daily_2port_power_consumption
state: "{{ state_attr('sensor.utility_meter_daily_2port_power_consumption','last_period') |round(1) }}"
unit_of_measurement: kWh
device_class: energy
attributes:
state_class: total
# 지난달 전력 사용량
- sensor:
- name: "last_period_utility_meter_monthly_2port_power_consumption"
unique_id: last_period_utility_meter_monthly_2port_power_consumption
state: "{{ state_attr('sensor.utility_meter_monthly_2port_power_consumption','last_period') |round(1) }}"
unit_of_measurement: kWh # kWh
device_class: energy
attributes:
state_class: total
☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠
뷰PDF 1,2
office view
관련자료
-
다음
댓글목록
등록된 댓글이 없습니다.