This repository contains custom scripts and automation configurations for my Home Assistant instance.
Configures the IKEA E2001/E2002 Zigbee switch to control the kitchen counter LEDs.
- Blueprint: Uses
EPMatt/ikea_e2001_e2002.yaml. - Features:
- Short Press (Up/Down): Turns lights On/Off AND toggles the motion sensor automation (
automation.kitchen_worktop_switch_light_on_motion). - Long Press (Up/Down): Dimming (Brightness +/-).
- Long Press (Left/Right): Color Temperature (Warm/Cool).
- Short Press (Left/Right): Step Color Temperature.
- Short Press (Up/Down): Turns lights On/Off AND toggles the motion sensor automation (
Controls the kitchen counter LEDs based on motion and illuminance.
- Blueprint: Uses
ArkadyGamza/motion_illuminance_activated_entity.yaml(Looks like your custom blueprint!). - Triggers:
- Motion:
binary_sensor.kitchen_motion_light_sensor_occupancy - Illuminance:
sensor.kitchen_motion_light_sensor_illuminance
- Motion:
- Target:
light.kitchen_counter_led
Contains 4 helper scripts used by the automation above to handle smooth transitions for brightness and color temperature:
light_increase_brightness/light_decrease_brightnesslight_increase_color_temp/light_decrease_color_temp
Contains the blueprints referenced by the automations:
blueprints/automation/EPMatt/ikea_e2001_e2002.yaml: The IKEA switch controller blueprint.blueprints/automation/ArkadyGamza/motion_illuminance_activated_entity.yaml: Custom motion & illuminance logic.blueprints/automation/ArkadyGamza/match-color-temp-kelvin.yaml: Adaptive lighting helper.
The repository files correspond to entries in your Home Assistant configuration files.
You can deploy changes by copying the content to your Home Assistant server via SSH.
Prerequisites:
- SSH access to Home Assistant (e.g., via "Terminal & SSH" add-on).
- User:
hassio(or configured user).
Steps:
-
Backup current config (optional but recommended):
cp /config/automations.yaml /config/automations.yaml.bak cp /config/scripts.yaml /config/scripts.yaml.bak
-
Update Automations:
- Open
/config/automations.yamlon the server. - Find the automation block with ID
1713265076593. - Replace it with the content of
ikea_e2001_e2002_switch_to_light_automation.yml.
- Open
-
Update Scripts:
- Open
/config/scripts.yamlon the server. - Update the definitions for
light_increase_brightness, etc., with the content fromscripts.yml.
- Open
-
Reload Configuration:
- In Home Assistant UI: Developer Tools -> YAML -> Reload Automations (and Reload Scripts).
To update this repository with the live configuration from the server:
# Example SSH command to view remote file content
ssh -p 22 hassio@homeassistant.local "cat /config/automations.yaml"