Hello everyone,
i am using the awesome integration from jheling to connect my Busch & Jäger/ABB Free@Home-System to home assistant. I am currently struggeling to create a blueprint to connect a light switch to my hue lightbar.
Could anybody help me? I can’t find the error!
The first set for me is to fix the blueprint only for color temperature. Later I want to add features like RGB colors or time related settings!
Thanks!
Code:
blueprint:
name: Free@Home button/switch to light - KELVIN only
description: Connect Free@Home switch to non Free@Home light
domain: automation
input:
freeathome_sensor:
name: Free@Home Senor
selector:
entity:
integration: freeathome
domain: binary_sensor
light_target:
name: Light
description: Light which will be controlled with this automation.
selector:
target:
entity:
- domain:
- light
light_color_temperature:
name: Color Temperature
description: The color temperature setting for the lights when they are turned
ON.
default: 3000
selector:
number:
min: 2000.0
max: 8000.0
mode: slider
step: 100.0
unit_of_measurement: kelvin
light_brightness:
name: Brightness
description: The brightness setting for the lights when they are turned ON.
default: 50
selector:
number:
min: 1.0
max: 100.0
mode: slider
step: 1.0
unit_of_measurement: '%'
light_transition_on:
name: Transition - ON
description: The transition setting for the lights when they are turned ON.
default: 1
selector:
number:
min: 0.0
max: 5
mode: slider
step: 0.2
unit_of_measurement: seconds
light_transition_off:
name: Transition - OFF
description: The transition setting for the lights when they are turned OFF.
default: 5
selector:
number:
min: 0.0
max: 60.0
mode: slider
step: 1.0
unit_of_measurement: seconds
mode: single
max_exceeded: silent
trigger:
- platform: state
entity_id: !input freeathome_sensor
from: "off"
to: "on"
- platform: state
entity_id: !input freeathome_sensor
from: "on"
to: "off"
action:
- choose:
- conditions:
- condition: state
entity_id: !input freeathome_sensor
state: "on"
sequence:
- service: light.turn_on
data:
color_temp: !input light_color_temperature
transition: !input light_transition_on
brightness: !input light_brightness
entity_id: !input light_target
default:
- service: light.turn_off
data:
transition: !input light_transition_off
target: !input light_target