Configuration Reference
Sensor Segment sensors
The sensor segment is a list of the sensors being used in the system. It is recommended to have an equal number of sensors as there are leds.
VL53L0X Sensors:
type: vl53l0x_i2ccalibration: Tripping distance in cm, supports floatsxshut_pin: XSHUT GPIO connection for this sensortiming_budget: Calculation time in μS allotted to sensor, higher values result in better accuracy but may cause lag
GPIO Sensors
type: gpiopin: GPIO pin of the Pi to be usedinvert: Invert thr HIGH/LOW values - default: falsepullup: Use the Pi's internal pullups - default: falsebounce_time: Time in seconds to counteract "bounce" - default: 0.0
Example usage:
Main LED Segments leds
Currently, only one PCA9685 I2C PWM driver is supported.
count: Number of LEDs for main channelsfreq: Operation frequency of each LED in Hertz (higher is usually better) - default: 200fps_on: LED update rate when the system is enabled - default: 120fps_off: LED update rate when the system is disabled - default: 60
Example usage:
Extra LED Channels extra_leds
The extra channels section is a list of each led/sensor pair
Each list element has the below options
channel: PCA channel for extra lightha_name: Entity name to appear in Home Assistantha_icon: Home Assistant Entity iconha_id: Home Assistant Entity unique IDgpio_pin: Pi's GPIO pin for sensorgpio_pullup: Enable Pi's built-in pullup resistor - default: falsegpio_invert: Invert sensor value - default: false
Example usage:
Per-Animation Settings animations
Blink Animation blink
blink_hz: Blink rate in Hertz - default: 2
Fade Animation fade
fade_speed_multiplier: Fade speed multiplier - default: 0.75
Walking Animation walking
activation_radius: Number of lights around the activated sensor to activate
Example usage:
Home Assistant and Entities home_assistant
MQTT Broker Settings mqtt
The username and password options can be set to USE_ENV to use the BROKER_USER and BROKER_PASS environment variables respectively. The values will default to blank if the variable isn't defined.
host: Broker address - default: "homeassistant.local"port: Broker's Non-SSL MQTT port - default: 1883username: Broker username - default: "USE_ENV"password: Broker password - default: "USE_ENV"connection_timeout: Maximum time to attempt connection to MQTT - default: 6
Device Listing device
name: Device name - default: "AutoLight Device"id: Device unique ID - default: "autolight_0"
Main Controller Entity to Appear in Home Assistant light_entity
name: Entity name - default: "Main Control"icon: Entity icon - default: "mdi:lightbulb"id: Light unique ID - default: "autolight_main"
Sensor entities to appear in Home Assistant sensor_entities
naming_scheme: Entity naming scheme to be used in Home Assistant,{0}will be replaced with the sensor index starting at one - default: "Sensor {0}"id_scheme: Entity unique id scheme to be used in Home Assistant,{0}will be replaced with the sensor index starting at zero - default: "sensor_{0}"device_class: Device class to be used in Home Assistant - default: "motion"
Extra Entities Available for CPU and Memory Usage debugging_entities
create_debug_entities: Enabled or not - default: trueupdate_rate: Update speed in seconds - default: 15
Example usage:
Terminal Logging Settings logging
Possible log level values are TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL.
interactive_log_level: Logging level for interactive terminals - default:INFOregular_log_level: Logging level for non-interactive sessions - default:WARNINGlog_file: Optional file to send logs to - default: "logger.log"file_logging: Enable logging to file - default: falserich_traceback: Enable rich tracebacks using the rich module (only available in interactive terminals) - default: true
Misc Settings
do_banner: Enable fancy startup banner for interactive sessions - default: true