Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Automations
- - id: '5'
- alias: Hård Plast Full
- description: ''
- trigger:
- - platform: state
- entity_id: sensor.pligt_dag
- to: 'on'
- condition:
- - condition: state
- entity_id: person.noah_elias_lauth
- state: home
- - condition: state
- entity_id: calendar.faste_aftaler
- state: 'off'
- - condition: state
- entity_id: sensor.template_todays_pligt
- state: Mandag
- action:
- - service: input_boolean.turn_on
- data: {}
- target:
- entity_id: input_boolean.hard_plast
- - wait_for_trigger:
- - type: motion
- platform: device
- device_id: df24a83b8f225287f848eeeb0cf16a9c
- entity_id: binary_sensor.sensor_occupancy
- domain: binary_sensor
- - service: automation.trigger
- data:
- skip_condition: false
- target:
- entity_id: automation.hard_plast_empty
- mode: single
- - id: '6'
- alias: Hård Plast Empty
- description: ''
- trigger:
- - platform: state
- entity_id: input_boolean.hard_plast
- to: 'on'
- condition: []
- action:
- - service: input_boolean.turn_on
- data: {}
- target:
- entity_id: input_boolean.hard_plast_empty
- - delay:
- hours: 0
- minutes: 1
- seconds: 12
- milliseconds: 0
- - wait_for_trigger:
- - type: motion
- platform: device
- device_id: df24a83b8f225287f848eeeb0cf16a9c
- entity_id: binary_sensor.sensor_occupancy
- domain: binary_sensor
- - service: input_boolean.turn_off
- data: {}
- target:
- entity_id: input_boolean.hard_plast
- mode: single
- - id: '7'
- alias: Hård Plast Done
- description: ''
- trigger:
- - platform: state
- entity_id: input_boolean.hard_plast_empty
- to: 'off'
- condition: []
- action:
- - service: switch.turn_on
- data: {}
- target:
- entity_id:
- - switch.noah_pc
- - switch.noah_skaerm
- #Kode til et betinget kort på dashboard
- type: vertical-stack
- cards:
- - type: vertical-stack
- cards:
- - square: false
- columns: 2
- type: grid
- cards:
- - type: custom:mushroom-person-card
- entity: person.noah_elias_lauth
- name: Noah Elias Lauth
- use_entity_picture: true
- hide_state: true
- - type: conditional
- conditions:
- - entity: input_boolean.hard_plast
- state: 'on'
- card:
- type: picture
- image: https://images2.imgbox.com/a8/ba/c9GesxCv_o.jpg
- tap_action:
- action: none
- hold_action:
- action: none
- - type: conditional
- conditions:
- - entity: input_boolean.hard_plast
- state: 'off'
- - entity: input_boolean.hard_plast_empty
- state: 'on'
- card:
- type: picture
- image: https://images2.imgbox.com/80/d1/IujR17Zc_o.jpg
- tap_action:
- action: call-service
- service: input_boolean.turn_off
- service_data: {}
- target:
- entity_id: input_boolean.hard_plast_empty
- hold_action:
- action: none
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement