I have what seems a simple problem but I have spent hours on it without success! I have a script in YAML:
swimmingpool_start_filtering:
alias: Swimming Pool Start Filtering
sequence:
- service: notify.persistent_notification
data:
title: "FILTERING"
message: "{{ 'cycle_count' }}"
- service: input_text.set_value
entity_id: input_text.swimmingpool_cleaning_status
data:
value: "Filtering"
- service: switch.turn_on
entity_id: switch.swimmingpool_filter
- service: switch.turn_on
entity_id: switch.swimmingpool_floor_jets
- delay:
seconds: 20
The two service calls “switch.turn_on” do not work. No errors are reported but nothing happens.
I am sure the script is executing OK because I see a Notification like:
I can operate the device from a dashboard configured like this:
That is, the switch turns on when operated from the dashboard but not when the script is invoked. The log records the operation from the dashboard, but shows nothing from the script activity.
The device is an ESP8266 flashed with Tasmota nad is intended to operate 6 relays.
The entity settings are:
Any help towards solving this issue will be gratefully accepted.