# AppDaemon Configuration Example for Advanced Light Sync # Add these configurations to your apps.yaml file # RGB + Color Temperature Lights (Downlights) downlight_1_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.downlight_1 mqtt_topic_base: "/commonroom/dl1" has_brightness: true has_rgb: true has_ct: true ct_min: 2700 # Kelvin ct_max: 6500 # Kelvin downlight_2_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.downlight_2 mqtt_topic_base: "/commonroom/dl2" has_brightness: true has_rgb: true has_ct: true ct_min: 2700 ct_max: 6500 downlight_3_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.downlight_3 mqtt_topic_base: "/commonroom/dl3" has_brightness: true has_rgb: true has_ct: true ct_min: 2700 ct_max: 6500 downlight_4_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.downlight_4 mqtt_topic_base: "/commonroom/dl4" has_brightness: true has_rgb: true has_ct: true ct_min: 2700 ct_max: 6500 downlight_5_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.downlight_5 mqtt_topic_base: "/commonroom/dl5" has_brightness: true has_rgb: true has_ct: true ct_min: 2700 ct_max: 6500 downlight_6_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.downlight_6 mqtt_topic_base: "/commonroom/dl6" has_brightness: true has_rgb: true has_ct: true ct_min: 2700 ct_max: 6500 # Nanoleaf RGB + Color Temperature Light nanoleaf_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.nanoleaf_panels mqtt_topic_base: "/commonroom/nanoleaf" has_brightness: true has_rgb: true has_ct: true ct_min: 1200 # Nanoleaf supports wider CT range ct_max: 6500 # Brightness-Only Lights (Lamp & Table Light) lamp_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.desk_lamp mqtt_topic_base: "/commonroom/lamp" has_brightness: true has_rgb: false has_ct: false table_lamp_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.outdoor_table_lamp mqtt_topic_base: "/3rdbuilding/tablelamp" has_brightness: true has_rgb: false has_ct: false # For Local Lights (if you want Home Assistant integration) # These would use the basic sync script since they're controlled directly by GPIO front_flood_light_sync: module: hass_mqtt_light_sync class: hass_mqtt_state_sync entity_id: light.front_flood_light mqtt_topic_state: "/serverroom/front_flood/state" mqtt_topic_set_state: "/serverroom/front_flood/set" mqtt_topic_request: "/serverroom/front_flood/request" # Example of how local lights with brightness could be set up # (if you want to sync GPIO PWM brightness with Home Assistant) local_light_with_brightness_sync: module: hass_mqtt_advanced_light_sync class: hass_mqtt_advanced_light_sync entity_id: light.local_dimmable_light mqtt_topic_base: "/serverroom/local_light" has_brightness: true has_rgb: false has_ct: false