Hi, I ty to run a shell_command within an automation. Unfortunately, the automation tells me, that he can not find the service ( Error in describing action: e.services[i] is undefined). But from my point of view I do the configuration correctly. Whats my mistake?
configuration.yml:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
#shell commands
shell_command:
write_to_file: 'printf "%s {{ states(''sensor.wetterstation_temperatur'') }}, {{ states(''input_number.rain_counter_15_min_ago'') }}\n" "$(date "+%H:%M:%S")" >> /config/wetter.txt_$(date "+%Y%m%d")'
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
automation.yml
- id: '1717099179496'
alias: Wetterdaten_fuer_extern
description: Speichert Regenmenge und aktuelle Temperatur aller 15 min in File.
trigger:
- platform: time_pattern
minutes: /15
condition: []
action:
- service: input_number.set_value
metadata: {}
data:
value: '{{ states (''sensor.wetterstation_regenzahler'') | float }}'
target:
entity_id: input_number.rain_counter_15_min_ago
- service: shell_command.write_to_file
data: {}
mode: single
Thanks for helping,
Holger