Skip to content

Commit

Permalink
rename Garmin control to simple control and either remove uncontrolla…
Browse files Browse the repository at this point in the history
…ble entities or make a workaround for them (as per issues: alanfischer/hassiq#33 alanfischer/hassiq#32 alanfischer/hassiq#34)
  • Loading branch information
PawelTroka committed May 10, 2020
1 parent 0dcbe0d commit c326b62
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
24 changes: 5 additions & 19 deletions homeassistant/groups.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
garmin_control:
simple_control:
entities:
- lock.front_door
- script.front_door
- light.living_room_lights
- light.hallway_lights
- light.kitchen_lights
- light.bathroom_lights
- light.toilet_lights
- light.office_lights
- light.bedroom_lights
- media_player.living_room
- media_player.kitchen
- media_player.bathroom
- media_player.toilet
- media_player.office
- media_player.bedroom
- climate.living_room_ac
- climate.office_ac
- climate.bedroom_ac
- climate.living_room
- climate.kitchen
- climate.bathroom
- climate.office
- climate.bedroom
- climate.kitchen_floor
- climate.bathroom_floor
- climate.toilet_floor
- input_boolean.cool_living_room
- input_boolean.cool_office
- input_boolean.cool_bedroom

all_lights:
entities:
Expand Down
21 changes: 21 additions & 0 deletions homeassistant/scripts/simple_control.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
front_door:
alias: Front door
sequence:
- service: script.turn_on
data_template:
entity_id: >
{% if is_state('lock.front_door', 'locked') %}
script.unlock_front_door
{% else %}
script.lock_front_door
{% endif %}
lock_front_door:
sequence:
- service: lock.lock
entity_id: lock.front_door

unlock_front_door:
sequence:
- service: lock.unlock
entity_id: lock.front_door

0 comments on commit c326b62

Please sign in to comment.