#Wearos based automation

1 messages · Page 1 of 1 (latest)

patent tinsel
#

Heya,

I was wondering something. Currently my #1355184068827807794 is set to turn on on channel 1 whenever the clock turns 10:25 am at certain days.

Now im wondering: can I change it to turn on every day, ut only if im at home and awake during certain times of day, the location derives from my geolocation data and my wearos sensor.activity_state sensor checking if im asleep.

I tried this myself but i didnt come far. So far ive connected my wearos device and tried enabling the activity state sendor but that didnt allow me to add it as a when portion within an automation

#
alias: New automation
description: ""
triggers:
  - trigger: time
    at: "10:25:00"
conditions:
  - condition: time
    weekday:
      - sat
      - fri
      - wed
      - mon
  - condition: device
    device_id: 375cd5b5310f500c00dfe2fb9e2c54cd
    domain: media_player
    entity_id: 6c2ce5cbf141b5dc9bd3839e2efd4b20
    type: is_off
actions:
  - type: turn_on
    device_id: 0c34e3a6a06c97f6ed6e7ca737e5ca44
    entity_id: 595e2315b1c3399b21425794d8d95465
    domain: remote
  - action: remote.send_command
    metadata: {}
    data:
      num_repeats: 1
      delay_secs: 7.1
      hold_secs: 0
      device: melitv
      command: WatchTV
    target:
      area_id: bedroom
    enabled: true
  - action: remote.send_command
    data:
      command:
        - WatchTV
        - Digit1
      delay_secs: 0.6
    target:
      entity_id: remote.melitv_remote
mode: single
#

And those are my options for my watch

patent tinsel
#

Can anyone please help me with this?

deft thicket
#

Look into state triggers and conditions. Those usually can do more than device triggers.

patent tinsel
deft thicket
#

That would be a condition, not a trigger.

#

Basically not "when", but "if".