Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Timer entity name in automation

$
0
0

@Unthred wrote:

Hi guys all I need to complete my heating boost automations is the name of the timer that has just finished. So 2 questions if I may.

  1. how do I get the name of it (automation to follow)
  2. are the properties of these objects documented anywhere so I dont have to keep asking?

the string I am trying to create is input_boolean.boost_[room name]_heating and the room name will come from the time just finished.

Thanks loads

- id: 'Heating: Turn Off When Boost Timer is Finished'
  alias: 'Heating: Turn Off When Boost Timer is Finished'
  description: ''
  trigger:
  - event_data:
      entity_id: timer.vestibule_boost_timer
    event_type: timer.finished
    platform: event
  - event_data:
      entity_id: timer.livingroom_boost_timer
    event_type: timer.finished
    platform: event
  - event_data:
      entity_id: timer.office_boost_timer
    event_type: timer.finished
    platform: event
  - event_data:
      entity_id: timer.kitchen_boost_timer
    event_type: timer.finished
    platform: event
  - event_data:
      entity_id: timer.bathroom_boost_timer
    event_type: timer.finished
    platform: event
  - event_data:
      entity_id: timer.katrin_boost_timer
    event_type: timer.finished
    platform: event
  - event_data:
      entity_id: timer.bedroom_boost_timer
    event_type: timer.finished
    platform: event
  condition: []
  action:
  - data_template:
      entity_id: input_boolean.boost_{{trigger.name.split('_')[0].split('.')[1]}}_heating
    service: input_boolean.turn_off

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>