Hoping someone may have some suggestions here. My newly installed Kasa dimmer switch is in the master bath. I want its power level to be 80% during 6:30am-12am, and then at 12am - 6:30am be 1%. What happens is at 6am, and again at midnight… the light levels do update, but the light also turns on, forcing me to get up and turn it off. It shouldn’t turn on, it should just set the light level for when the switch is manually activated,
My script for daytime as installed
alias: MB Bath Light (Day)
description: Kasa Smart Dimmer - 6:30 AM to 12 AM (80%)
triggers:
- at: "06:30:00"
trigger: time
conditions:
- condition: time
after: "06:30:00"
before: "00:00:00"
actions:
- target:
entity_id: switch.mb_lights_kasa_led
action: switch.turn_on
data: {}
- target:
entity_id: light.mb_lights_kasa
data:
brightness_pct: 80
transition: 0
action: light.turn_on
mode: single
Apparently this is modified automaticlaly by HA whenever I write the yaml as a action: - service, this is what I’ve tried to configure.
actions:
- service: switch.turn_on
target:
entity_id: switch.mb_lights_kasa_led
- service: light.turn_on
target:
entity_id: light.mb_lights_kasa
data:
brightness_pct: 80
transition: 0
Any thoughts on what I’m doing wrong?