Skip to content

Commit

Permalink
Fixed aqqra double switch to control cover, and updated lovelace
Browse files Browse the repository at this point in the history
  • Loading branch information
patatman committed Jan 7, 2019
1 parent eb0148d commit 4331c36
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 115 deletions.
32 changes: 29 additions & 3 deletions automations.yaml
Expand Up @@ -296,7 +296,7 @@
entity_id: light.gateway_light_7811dcb27710
service: light.turn_off
- id: '1544304881668'
alias: Nieuwe automatisering
alias: Cover button left
trigger:
- event_data:
entity_id: binary_sensor.wall_switch_left_158d0001e0a3f6
Expand All @@ -307,8 +307,8 @@
action:
- alias: ''
data:
entity_id: light.officerights
service: light.toggle
entity_id: cover.livingroom_roller
service: cover.close_cover
- id: '1544305094328'
alias: office knop
trigger:
Expand Down Expand Up @@ -349,3 +349,29 @@
- data:
entity_id: light.kossel_light
service: light.turn_off
- id: '1546896384028'
alias: Cover button right
trigger:
- event_data:
entity_id: binary_sensor.wall_switch_right_158d0001e0a3f6
event_type: single
event_type: xiaomi_aqara.click
platform: event
condition: []
action:
- data:
entity_id: cover.livingroom_roller
service: cover.open_cover
- id: '1546896429811'
alias: Cover button both
trigger:
- event_data:
entity_id: binary_sensor.wall_switch_both_158d0001e0a3f6
event_type: single
event_type: xiaomi_aqara.click
platform: event
condition: []
action:
- data:
entity_id: cover.livingroom_roller
service: cover.stop_cover
243 changes: 131 additions & 112 deletions ui-lovelace.yaml
@@ -1,130 +1,134 @@

# This file was automatically generated by lovelace_migrate.py
# https://github.com/dale3h/python-lovelace
#

# Monster card resource
resources:
- url: /local/monster-card.js
type: js
- url: /local/custom_ui/weather-card.js
type: js
- url: /local/mini-media-player-bundle.js?v=0.9.5
type: module

- type: js
url: /local/monster-card.js
- type: module
url: /local/mini-media-player-bundle.js?v=0.9.5
title: Home
views:
- title: Home
cards:
- type: custom:monster-card
show_empty: true
card:
type: entities
- cards:
- card:
title: Motion Detected
type: entities
entities:
- entity: binary_sensor.door_window_sensor_158d0002133b59
- entity: binary_sensor.front_door_camera_online
- entity: binary_sensor.motion_sensor_158d0001a92381
- entity: binary_sensor.motion_sensor_158d0001e55662
- entity: binary_sensor.octoprint_printing
filter:
include:
- domain: binary_sensor
state: 'on'
- type: custom:monster-card
show_empty: true
card:
type: entities
type: 'custom:monster-card'
- card:
title: Lights On
type: entities
entities:
- entity: light.hallway_3
- entity: light.kitchen1
- entity: light.kitchen2
- entity: light.rode_lamp
- entity: light.tradfri_bulb_e27_w_opal_1000lm_2
- entity: light.tradfri_bulb_gu10_w_400lm_11
- entity: light.tradfri_bulb_gu10_w_400lm_12
filter:
include:
- domain: light
state: 'on'
- type: custom:monster-card
show_empty: true
card:
type: entities
type: 'custom:monster-card'
- card:
title: Currently playing
filter:
type: entities
entities:
- entity: media_player.livingroom_
filter:
exclude:
- entity_id: media_player.spotify
include:
- domain: media_player
state: 'playing'
exclude:
- entity_id: "media_player.spotify"
- type: custom:monster-card
card:
type: entities
state: playing
show_empty: true
type: 'custom:monster-card'
show_header_toggle: false
- card:
title: Climate
type: entities
entities:
- entity: climate.kleine_kamer
- entity: climate.slaapkamer
- entity: climate.voorkamer
- entity: climate.woonkamer
filter:
include:
- domain: climate
- type: custom:weather-card
entity_weather: weather.yweather
entity_sun: sun.sun

- type: vertical-stack
cards:
- type: picture-entity
entity: camera.voordeur
show_state: false
type: 'custom:monster-card'
- cards:
- entity: camera.voordeur
show_name: false
- type: picture-entity
entity: camera.zijdeur
show_state: false
type: picture-entity
- entity: camera.zijdeur
show_name: false
- type: picture-entity
entity: camera.front_door
show_state: false
type: picture-entity
- entity: camera.front_door
show_name: false

- type: entities
title: Media Players
entities:
show_state: false
type: picture-entity
type: vertical-stack
- entities:
- entity: media_player.bedroom_speaker
type: custom:mini-media-player
group: true
type: 'custom:mini-media-player'
- entity: media_player.living_room_speaker
type: custom:mini-media-player
group: true
type: 'custom:mini-media-player'
- entity: media_player.old_speaker
type: custom:mini-media-player
group: true
type: 'custom:mini-media-player'
- entity: media_player.upstairs_speaker
type: custom:mini-media-player
group: true
type: 'custom:mini-media-player'
- entity: media_player.googlehomehub2919
group: true
- type: entities
title: Media Player Groups
entities:
- entity: media_player.livingroom_
type: custom:mini-media-player
artwork: cover
title: Media Players
type: entities
- entities:
- artwork: cover
entity: media_player.livingroom_
group: true
- entity: media_player.party
type: custom:mini-media-player
artwork: cover
power_color: true
type: 'custom:mini-media-player'
- artwork: cover
entity: media_player.party
group: true
- entity: media_player.upstairs
type: custom:mini-media-player
artwork: cover
power_color: true
type: 'custom:mini-media-player'
- artwork: cover
entity: media_player.upstairs
group: true
- type: custom:mini-media-player
type: 'custom:mini-media-player'
title: Media Player Groups
type: entities
- artwork: cover
entity: media_player.spotify
name: Spotify player
artwork: cover
show_source: full
media_buttons:
- name: Easy on Sunday
type: playlist
url: spotify:user:spotify:playlist:37i9dQZF1DWZpGSuzrdTXg
url: 'spotify:user:spotify:playlist:37i9dQZF1DWZpGSuzrdTXg'
- name: Joost New Releases
type: playlist
url: spotify:user:foost:playlist:7JLymXyQVjbeupuaapu95L
url: 'spotify:user:foost:playlist:7JLymXyQVjbeupuaapu95L'
- name: De Yaylist
type: playlist
url: spotify:user:faberyayo:playlist:4I0NnAhaMaPcynq0xbLdyL

- title: 3d printer
icon: mdi:printer-3d
cards:
- type: entities
entities:
url: 'spotify:user:faberyayo:playlist:4I0NnAhaMaPcynq0xbLdyL'
name: Spotify player
show_source: full
type: 'custom:mini-media-player'
title: Home
- cards:
- entities:
- sensor.octoprint_actual_bed_temp
- sensor.octoprint_actual_tool0_temp
- sensor.octoprint_current_state
Expand All @@ -133,46 +137,61 @@ views:
- sensor.octoprint_target_tool0_temp
- sensor.octoprint_time_elapsed_format
- sensor.octoprint_time_remaining_format
- type: picture-entity
entity: camera.ffmpeg
show_state: false
type: entities
- entity: camera.ffmpeg
show_name: false
- title: Livingroom
cards:
show_state: false
type: picture-entity
- entities: []
show_header_toggle: true
title: 3d printer light
type: entities
icon: 'mdi:printer-3d'
title: 3d printer
- cards:
- type: entities
title: Livingroom_group
entities:
- entity: light.tradfri_bulb_e27_w_opal_1000lm_2
- entity: light.window_light
- entity: light.rode_lamp
show_header_toggle: true
title: Livingroom_group
- type: entities
entities:
- light.fireplace
- light.tradfri_bulb_gu10_w_400lm_10
- light.tradfri_bulb_gu10_w_400lm_9
- title: Upstairs
- entity: cover.livingroom_roller
title: Blinds
title: Livingroom
- badges: []
cards:
- type: entities
- entities:
- entity: light.bathroom1
- entity: light.bathroom2
- entity: light.bathroom3
show_header_toggle: true
title: Bathroom lights
type: entities
icon: ''
title: Bathroom
- cards:
- entities:
- entity: light.kitchen1
- entity: light.kitchen2
- entity: light.kitchen_ledstrip
show_header_toggle: true
title: Kitchen
type: entities
title: Kitchen
- cards:
- type: entities
entities:
- light.tradfri_bulb_gu10_w_400lm
- light.tradfri_bulb_gu10_w_400lm_2
- light.tradfri_bulb_gu10_w_400lm_3
- title: Kitchen
cards:
- entity: cover.office_roller
title: Blinds
show_header_toggle: false
- type: entities
entities:
- light.tradfri_bulb_gu10_w_400lm_10
- light.tradfri_bulb_gu10_w_400lm_9
- title: Surveillance
icon: mdi:cctv
cards:
- type: picture-entity
entity: camera.voordeur
show_state: false
show_name: false
- type: picture-entity
entity: camera.zijdeur
show_state: false
show_name: false
- type: picture-entity
entity: camera.tf_voordeur
- type: picture-entity
entity: camera.tf_zijdeur
- entity: light.falcon_light
- entity: light.officeleft
- entity: light.officeright
badges: []
title: Office
icon: ''

0 comments on commit 4331c36

Please sign in to comment.