Hello,
I have an easy simple script that turns off motion detection in the waiting room (so the lights stay on) and then toggles 2 wall plugs to turn on two standing lamps:
toggle_praktijkmodus_script:
alias: toggle_praktijkmodus_script
sequence:
- service: input_boolean.toggle
target:
entity_id: input_boolean.bewegingsdetectie
- wait_template: ""
timeout: 00:00:01
continue_on_timeout: true
- type: toggle
device_id: 9f680ae40b9f11eb828961593b880b4e
entity_id: switch.praktijk1_wall_plug_switch
domain: switch
- wait_template: ""
timeout: 00:00:01
continue_on_timeout: true
- type: toggle
device_id: 69dc20455d98890d4456ca1514be463f
entity_id: switch.praktijk2_wall_plug_switch
domain: switch
- wait_template: ""
timeout: 00:00:01
continue_on_timeout: true
mode: single
which works perfectly when triggered from lovelace ui
However in hadashboard, I made a widget that calls that script
praktijk_mode:
widget_type: script
title: Praktijk Mode
entity: script.toggle_praktijkmodus_script
icon_on: mdi-desk-lamp
icon_off: mdi-desk-lamp
icon_style_active: "color: blue"
And this just turns on 1 light (toggles 1 wall switch).
Anybody has an idea what causes this? I put in the delays, just to make sure I wasn’t asking too much at the same time
Thanks for lookin in to this