#Unifi G4 DoorBell + Phillips hue Porch Light

1 messages · Page 1 of 1 (latest)

upper torrent
#
  • I’d like to have an automation that when my G4 Door Bell detects Motion the Porch Light sill turn on.

However these are the rules I’d like.

  • From 8pm-5am
  • Porch light stays on for only 60 seconds then turns off.

I keep getting close but still having some issues. If you need me to send the automation I created I’ll post later today.

Thank you

desert crest
upper torrent
upper torrent
#

oops drop down was missing -

upper torrent
#

Issue has been resolved

#

Needed less. And figured out the correct motion sensor option

#

Only needed sensor, time, and on and off

desert crest
# upper torrent Issue has been resolved

okay but a note for the future, if you switch to yaml editor in the top right of the automation editor you can paste the code (inside triple backticks) for people to view easily. you can switch back and forth between yaml and visual editors easily.

upper torrent
#

'''alias: Porch light Activation
description: ""
triggers:

  • trigger: state
    entity_id:
    • binary_sensor.g4_doorbell_pro_motion
      to: "on"
      conditions:
  • condition: time
    after: "20:00:00"
    before: "05:00:00"
    actions:
  • action: light.turn_on
    metadata: {}
    data:
    brightness_pct: 80
    color_temp_kelvin: 4265
    target:
    entity_id: light.0x001788010859e5f7
  • action: light.turn_off
    metadata: {}
    data:
    transition: 45
    target:
    entity_id: light.0x001788010859e5f7
    mode: single'''
#

is there a reason my Device Id's are like that instead of a name

tawny horizonBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

desert crest
upper torrent
#

ah ok

desert crest
#

and as the formatting example shows, please encase code in triple backticks

upper torrent
#

better? @desert crest

#

i sent you the wrong copy and paste earlier by the way

#

so stupid of me

#

i legit just woke up sorry.

desert crest
upper torrent
#

oh when I paste in discord...

#

lol

desert crest
#

but yeah pointing at entity as better than device in most cases.

upper torrent
#
this is a test```
#

wtf am i doing wrong

desert crest
#

use backticks not quotes

#

`

upper torrent
#

LMAO

#

im using a ducky keyboard with 60 keys

#

forgot i have to Fn Esc

desert crest
#

makes stuff so much easier to read

#

will make life easier on the next one 🙂

upper torrent
#

thank you for all of your help