Skip to content

Commit

Permalink
6 Speed Ceiling Fan Remote (0.2.0) - string vs int
Browse files Browse the repository at this point in the history
  • Loading branch information
asucrews authored Jul 10, 2024
1 parent 7a91dac commit f0a6717
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions automations/esp360_remote/6_speed_fan.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blueprint:
name: 6 Speed Ceiling Fan Remote (0.1.1)
name: 6 Speed Ceiling Fan Remote (0.2.0)
description: Blueprint for controlling the 6 speed ceiling fan with RF remote using ESP360 Remote
homeassistant:
min_version: 2024.6.0
Expand Down Expand Up @@ -108,7 +108,7 @@ action:
- choose:
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_light }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == ( code_light | int ) }}"
sequence:
- if:
- condition: state
Expand All @@ -124,7 +124,7 @@ action:
entity_id: !input light_state
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_fan }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == ( code_fan | int ) }}"
sequence:
- if:
- condition: state
Expand All @@ -140,7 +140,7 @@ action:
entity_id: !input fan_state
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_preset_1 }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == ( code_preset_1 | int ) }}"
sequence:
- service: input_select.select_option
target:
Expand All @@ -149,7 +149,7 @@ action:
option: "1"
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_preset_2 }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == ( code_preset_2 | int ) }}"
sequence:
- service: input_select.select_option
target:
Expand All @@ -158,7 +158,7 @@ action:
option: "2"
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_preset_3 }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == ( code_preset_3 | int ) }}"
sequence:
- service: input_select.select_option
target:
Expand All @@ -167,7 +167,7 @@ action:
option: "3"
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_preset_4 }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == ( code_preset_4 | int ) }}"
sequence:
- service: input_select.select_option
target:
Expand All @@ -176,7 +176,7 @@ action:
option: "4"
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_preset_5 }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == ( code_preset_5 | int ) }}"
sequence:
- service: input_select.select_option
target:
Expand All @@ -185,7 +185,7 @@ action:
option: "5"
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_preset_6 }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == ( code_preset_6 | int ) }}"
sequence:
- service: input_select.select_option
target:
Expand All @@ -194,7 +194,7 @@ action:
option: "6"
- conditions:
- condition: template
value_template: "{{ event_protocol == protocol and event_code == code_direction }}"
value_template: "{{ ( event_protocol | int ) == ( protocol | int ) and ( event_code | int ) == code_direction }}"
sequence:
- if:
- condition: state
Expand Down

0 comments on commit f0a6717

Please sign in to comment.