Hey Guys, i need some help with a script of mine. Or rather some trouble shooting, maybe someone else can provide some input.
First here is my script in question:
script:
#####################################################################################
'wakeup_sequence':
alias: wakeup_sequence
sequence:
- data:
message: Start Alarm Sequence! Current time is {{ states.sensor.time.state }} and the alarm is set to {{ states.sensor.alarm_1_time.state }} with an offset of {{ states.input_number.alarm_1_offset.state }} set to {{ states.sensor.alarm_1_time_minus_offset.state }} Alarm on Weekdays is({{ states.input_boolean.alarm_1_weekday.state }} ) and on Weekends is ({{ states.input_boolean.alarm_1_weekend.state }} ) delay timer is also properly configured to 00:{{ states.input_number.alarm_1_offset.state | int }}:00
service: notify.zchat
- data: {}
service: script.wakeup_dim
- delay: 00:00:05
- data: {}
service: script.wakeup_bright_step_one
- delay: '00:{{ states.input_number.alarm_1_offset.state | int }}:10'
######################################################################################
'wakeup_dim':
alias: wakeup_dim
sequence:
- data:
brightness_pct: '1'
entity_id:
- light.yeelight_rgb_34ce008d0d2f
- light.bedroom_bulb_color
rgb_color:
- 255
- 0
- 0
transition: '0'
service: light.turn_on
############################################################
'wakeup_bright_step_one':
alias: wakeup_bright_step_one
sequence:
- data_template:
entity_id:
- light.yeelight_rgb_34ce008d0d2f
- light.bedroom_bulb_color
transition: '{{ ((states.input_number.alarm_1_offset.state | int )*60) | int }}'
brightness_pct: '100'
rgb_color:
- 255
- 167
- 90
color_temp: '343'
service: light.turn_on
- data:
message: Lights Up
service: notify.zchat
############################################################
First some commentary, the part '{{ ((states.input_number.alarm_1_offset.state | int )*60) | int }}'
set the transition to a number in minutes, typically 15 mins. The frist thing is a wireless bulb yeeligth the second is a IKEA tradfri colour bulb.
The problem I have is that the ikea bulb only transitions from the initial red (brightness 0) to about rgb(255,267,90) at brightness 40% or so and then just stalls, the yeebulb does it properly. The ikea bulb is connected via the ikea gateway.
Anything I could try here?