HS220 help

Hi everyone, totally new to haas and hoping for some guidance including some examples. High level question, is it possible to have what I call kitchen light routine in one automation rule? This routine currently runs in google home, i’d like to toss it and use HAAS exclusively

  • I have a hs220 (kasa dimmer switch). It is configured as a a light so i can leverage the dimming features. Via UI, the HS220 shows up as light, i can turn on, off and dim as required.

Here’s the routine i have setup in google home which i’d like to mimc in haas as one rule if possible

Monday - Friday
7am kitchen light comes on with 25% brightness
8am kitchen light increases to 50% brightness
9am kitchen light increases to 75% brightness
9pm kitchen light dresses to 50% brightness
9:30pm kitchen light decreases to 25% brightness
10pm kitchen lights are turned off

Saturday / Sunday:
9pm kitchen light dresses to 50% brightness
9:30pm kitchen light decreases to 25% brightness
10pm kitchen lights are turned off

bonus if this automation can also handle states check, for example if the light is increasing or lowering brightness so it doesn’t turn the light on or off. Further; i noticed while setting up a another rule, the sun feature; would be neat to replace specific times and instead use the offset of sun to maybe do the timings.

My TP-Link front door light is switched on 15min past sunset:

# Turn Front Door Light on at Sunset +15min
- alias: Turn FrontDoorLight on at Sunset plus 15min to 85
  trigger:
    platform: sun
    event: sunset
# offset - is before, + is after sunset
    offset: "+00:15:00"
  action:
    service: light.turn_on
    entity_id: light.frontdoorlight
    data_template:
      brightness_pct: 85

I change the brightness like this:

# Turn Front Door Light down to 45% at 21:15h
- alias: Turn down FrontDoorLight at 21:15h to 45
  trigger:
    platform: time
    at: '21:15:00'
  action:
    service: light.turn_on
    entity_id: light.frontdoorlight
    data_template:
      brightness_pct: 45

And you can easily add conditions for weekdays and presence as you like:

  condition: 
    - condition: state
      entity_id: group.people
      state: 'home'
    - condition: time
      weekday:
        - sat
        - sun

Hello, thanks for the guidance. When adding automation via the UI, I don’t see the ability to add the weekday check in the UI for time. Seems I have to go into the file itself and add there.

Am I noticing this behavior correctly?

Not 100% sure - I’m trying to avoid the UI for automations where I can because it sorts the various items by alphabetical order rather than by logic and it doesn’t allow me to keep comments - sorry!