Hi,
I am trying to do my first automation. I have an Aeotec smart plug and I am monitoring the power usage which I am trying to use as a trigger. What I am expecting - when power usage goes above 100 Watts, a audio message to my Google speaker PLUS a message sent to my phone. The automation does not work as I expect and if I click on Debug > Trace Timeline, I see an error message:
Triggered manually at 28 June 2022, 18:21:51
Call service tts.google_say
Stopped because an error was encountered at 28 June 2022, 18:21:51 (runtime: 0.01 seconds)
extra keys not allowed @ data[‘cache_dir’]
I placed the code in to WAML Lint and it says 'Valid YAML. It says in the log file ‘Dryer has started turned on triggered by service automation.turn_on’
Can someone please help?"
Here is the code:
- id: "1655871927239"
alias: Dryer has started
description: Notify when the dryer has started
trigger:
- platform: numeric_state
entity_id: sensor.aeotec_outlet_dryer_power_meter
attribute: power
above: "100"
action:
- service: tts.google_say
data:
entity_id: media_player.living_room_speaker
message: Dryer has started
cache: true
cache_dir: /tmp/tts
- service: notify.mobile_app_sm_s906e
data:
message: Dryer has started
title: Laundry
mode: single