FYI: Weather Station LUX/UV sensor for day/night events

May 1, 2019
2,254
3,563
Reno, NV
Just wanted to toss out there for folks that have various weather stations, they usually have either a LUX or UV solar radiation sensor that you can use for incorporate into day/night events. I found this out by accident on my station that it even had this sensor. I use it to turn on/off outdoor lights for the time being but will eventually do other things as well such as using Dahua day/night schedule changing program, changing parameters on a DSC 1864 home alarm system, etc.
 
If you are using Home Assistant, you can make an Automation using the Sun Angle as well.
This turns on some string lights via a Z-Wave switch when the Sun is 1 degree below the horizon, but you could use it to fire any action available. Especially if you are using the Dahua Integration

Code:
alias: String Lights On - Sun Angle
description: ''
trigger:
  - platform: numeric_state
    entity_id: sun.sun
    attribute: elevation
    below: '-1'
condition: []
action:
  - type: turn_on
    device_id: 2ec3f9d6597210d6f7c6978a74883fef
    entity_id: switch.barn_string_lights
    domain: switch
mode: single
 
  • Like
Reactions: datdamnzotz