Skip to content

Petro31/ad_sunset_lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Home Assitant Lights On at Sunset Appdaemon App

hacs_badge
Buy Me A Coffee

Lights On at Sunset app for AppDaemon.

Simply toggles lights on at sundown, turns them off at sunrise. You can set the light service data.

Installation

Download the sunset_lights directory from inside the apps directory to your local apps directory, then add the configuration to enable the hacs module.

Example App configuration

Simple switch

sunsetlights:
  module: sunset_lights
  class: SunsetLights
  entities:
  - group.sconces

Advanced

sunsetlights:
  module: sunset_lights
  class: SunsetLights
  entities:
  - group.sconces
  - entity: light.office_lamp
    service_data:
      brightness: 100
      kelvin: 2700
  - entity: light.office_mood
    service_data:
      brightness: 130
      rgb_color: [255,0,0]
  log_level: INFO

App Configuration

key optional type default description
module False string sunset_lights The module name of the app.
class False string SunsetLights The name of the Class.
entities False list A list of entity_id's or entity objects.
log_level True 'INFO' | 'DEBUG' 'INFO' Switches log level.

Entity Object Configuration

key optional type default description
entity False string The entity_id of the switch or light.
service_data True map Turn on service data. Whenever the door turns on a light or switch, this data will be passed to the service data. Warning: Use only valid combinations. Light combinations are not validated and can cause errors in Home Assistant.