Skip to content

Commit

Permalink
Add example climate.set_hvac_mode action (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
JOHLC authored Jul 5, 2022
1 parent 07ff3a2 commit 76511f8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ climate:
# available based on esphome nodes' availability.
availability_template: "{{ is_state('binary_sensor.bedroom_node_status', 'on') }}"

# Example Action.
# example action
set_hvac_mode:
# allows me to disable sending commands to aircon via UI.
- condition: state
Expand All @@ -90,6 +90,20 @@ climate:
# could also send IR command via broadlink service calls etc.
```

### Example action to control existing Home Assistant devices

```yaml
climate:
- platform: climate_template
# ...
set_hvac_mode:
# allows you to control an existing Home Assistant HVAC device
- service: climate.set_hvac_mode
data:
entity_id: climate.bedroom_ac_nottemplate
hvac_mode: "{{ states('climate.bedroom_ac_template') }}"
```
### Use Cases
- Merge multiple components into one climate device (just like any template platform).
Expand Down

0 comments on commit 76511f8

Please sign in to comment.