Add sensors to know when A/C fans and compressors are running
This commit is contained in:
@ -45,6 +45,25 @@ sensor:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
availability_template: "{{ states('climate.master_bedroom_aircon') not in ['unavailable','unknown'] }}"
|
availability_template: "{{ states('climate.master_bedroom_aircon') not in ['unavailable','unknown'] }}"
|
||||||
|
|
||||||
|
template:
|
||||||
|
- binary_sensor:
|
||||||
|
- name: Emma Aircon - Compressor
|
||||||
|
unique_id: 21bcbb62-823c-43ff-8c2c-26e940324ee6
|
||||||
|
state: "{{ states('sensor.emma_air_conditioner_power') | int > 150 }}"
|
||||||
|
device_class: running
|
||||||
|
- name: Emma Aircon - Fan
|
||||||
|
unique_id: 9e3054cf-8f7e-4fef-9da4-5b2f2bc99c9d
|
||||||
|
state: "{{ states('sensor.emma_air_conditioner_power') | int > 20 }}"
|
||||||
|
device_class: running
|
||||||
|
- name: Master Bedroom Aircon - Compressor
|
||||||
|
unique_id: 87051957-1dbc-4d65-b138-e8469728f58f
|
||||||
|
state: "{{ states('sensor.master_bedroom_aircon_power') | int > 150 }}"
|
||||||
|
device_class: running
|
||||||
|
- name: Master Bedroom Aircon - Fan
|
||||||
|
unique_id: ae893dd6-129c-4886-a966-a89b958d9f08
|
||||||
|
state: "{{ states('sensor.master_bedroom_aircon_power') | int > 20 }}"
|
||||||
|
device_class: running
|
||||||
|
|
||||||
input_boolean:
|
input_boolean:
|
||||||
master_bedroom_nighttime_protocol:
|
master_bedroom_nighttime_protocol:
|
||||||
name: Master Bedroom Nighttime Protocol
|
name: Master Bedroom Nighttime Protocol
|
||||||
|
@ -293,5 +293,37 @@
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
type: time
|
type: time
|
||||||
end: '{{ now() }}'
|
end: '{{ now() }}'
|
||||||
|
duration:
|
||||||
|
hours: 24
|
||||||
|
- platform: history_stats
|
||||||
|
name: Emma A/C Compressor Time
|
||||||
|
entity_id: binary_sensor.emma_aircon_compressor
|
||||||
|
state: 'on'
|
||||||
|
type: time
|
||||||
|
end: '{{ now() }}'
|
||||||
|
duration:
|
||||||
|
hours: 24
|
||||||
|
- platform: history_stats
|
||||||
|
name: Emma A/C Fan Time
|
||||||
|
entity_id: binary_sensor.emma_aircon_fan
|
||||||
|
state: 'on'
|
||||||
|
type: time
|
||||||
|
end: '{{ now() }}'
|
||||||
|
duration:
|
||||||
|
hours: 24
|
||||||
|
- platform: history_stats
|
||||||
|
name: Master Bedroom A/C Compressor Time
|
||||||
|
entity_id: binary_sensor.master_bedroom_aircon_compressor
|
||||||
|
state: 'on'
|
||||||
|
type: time
|
||||||
|
end: '{{ now() }}'
|
||||||
|
duration:
|
||||||
|
hours: 24
|
||||||
|
- platform: history_stats
|
||||||
|
name: Master Bedroom A/C Fan Time
|
||||||
|
entity_id: binary_sensor.master_bedroom_aircon_fan
|
||||||
|
state: 'on'
|
||||||
|
type: time
|
||||||
|
end: '{{ now() }}'
|
||||||
duration:
|
duration:
|
||||||
hours: 24
|
hours: 24
|
Reference in New Issue
Block a user