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

Struggling with value_template on a trigger

$
0
0

@swollef wrote:

I am attempting to create an automation that picks up when the washing machine wattage goes over 10

im trying to use the value_template as per the automation trigger docs

trigger:
  entity_id: sensor.tumble_dryer_power
  platform: state
  value_template: "{{ sensor.tumble_dryer_power.replace(' W','')|float }}"
  to: 'above: 10'

im constantly getting the following error:

Message malformed: extra keys not allowed @ data['trigger'][0]['value_template']

ive tried changing sensor. to state. within the value_template but this seems to make no difference to the error I receive

any help appreciated as always (still only in my second week with HA)

Posts: 11

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95354

Trending Articles