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

Automation with multiple template conditions

$
0
0

@Valiceemo wrote:

I’m trying to have an automation trigger at a specific time, if one of 2 conditions are met…and I’m failing

- id: '1582138911675'
  alias: Bin reminder
  description: ''
  trigger:
  - at: '19:51'
    platform: time
  condition:
  - condition: template
    value_template: '{{ (state_attr(''sensor.grey_bin'', ''days'')|int) == 1}}'
  - condition: template
    value_template: '{{ (state_attr(''sensor.green_bin'', ''days'')|int) == 1}}'
  action:
  - data:
      message: Bins
      title: Home Assistant
    service: notify.pushbullet

I’ve been away from HA for a while so I’m very rusty!
I’d also like to have the pushbullet notification message read either grey or green bin, based on which condition triggered it?
I canake it work using 2 separate automations, but feel like it can be achieved in 1?
Any help much appreciated

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles



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