Can we use this forum entry for another automation question?
One night the gen started because the batteries where down because a pump was running that should not. Therefore i programmed a simple automation the sends out a warning message when the load supersedes a certain amount during a certain time.
alias: HA011 - High power usage warning
description: Send telegram message if power usage above nn watts for more than nn hh:mm. Helpers used for threshold and timer
trigger:
- platform: numeric_state
entity_id: sensor.load_watts
for: input_timer.high_power_timer
above: input_number.high_power_threshold
condition: []
action:
- service: telegram_bot.send_message
data:
message: >-
HA011 - Warning: High power usage! Load:
{{states("sensor.load_watts")}}W
mode: single
I found in the logs a error entry saying that the format is not correct.