forked from leofabri/hassio_appliance-status-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asm_hvac.yaml
75 lines (67 loc) · 2.51 KB
/
asm_hvac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
timer:
hvac_delayed_job_completion_timer:
name: HVAC - Delayed Job Completion Timer
duration: "01:00:00" # <- Notice the time here. Leave as it is (1 hour)
restore: true
icon: mdi:hvac
hvac_delayed_job_ongoing_timer:
name: HVAC - Delayed Job Ongoing Timer
duration: "01:00:00" # <- Notice the time here. Leave as it is (1 hour)
restore: true
icon: mdi:hvac
hvac_job_completed_persistence_timer:
name: HVAC - Job completed persistence timer
duration: "01:30:00" # <- Notice the time here. Leave as it is (1h 30 min)
restore: true
icon: mdi:hvac
input_boolean:
hvac_job_cycle:
name: HVAC - Job Cycle
icon: mdi:hvac
hvac_automation_self_trigger:
name: HVAC - Automation Self-trigger
icon: mdi:hvac
input_select:
hvac_state_machine:
name: HVAC - State Machine
options:
- unplugged
- idle
- paused
- detached_overload
- job_ongoing
- job_completed
icon: mdi:hvac
#________________________
# * ADDITIONAL FEATURES *
template: [] # <- IMPORTANT! Remove the [] if you enable any macro
## -- MACROS --
##
## **OPTIONAL**
## NAME: State translation macro
## INSTRUCTIONS: https://github.com/leofabri/hassio_appliance-status-monitor/issues/16#issuecomment-1211764562
## DSCRIPTION: This macro translates each state into something more human-readable.
## A sensor is created and available to the user.
## The following lines define how each state should be translated:
## <state>: <translation to whatever I like>
##
## It allows you to customize how each state should be displayed on the UI.
## The template below is disabled by default,
## if you want to enable it you need to uncomment the lines that will follow (remove all the '# ').
## Press ctrl + K & ctrl + U to uncomment from VSCode.
# - sensor:
# - name: HVAC Current State - Translated
# unique_id: washing_machine_current_state_translated
# state: >
# {%- macro state_machine_translation(state) -%}
# {% set STATE_MACHINE_TRANSLATION = {
# "unplugged": "Unplugged",
# "idle": "Idle",
# "paused": "Paused",
# "detached_overload": "Overload",
# "job_ongoing": "HVAC on",
# "job_completed": "HVAC went off",
# } %}
# {{ STATE_MACHINE_TRANSLATION[state]}}
# {%- endmacro -%}
# {{ state_machine_translation(states('input_select.hvac_state_machine')) }}