Hello.
Firstly I would like to say this is my first post to these forums, g’day from down under
I have been quite happily using HASS for a few months now & would like to say thank you so very much to both the devs & community for such a great project even at the 0.23 stage it is at now. I have high hopes for the future of HASS & hope I will in some way be able to help it & fellow users along the way.
Along with a heap of DIY ESP8266 & Arduino devices, milights, chromecasts, 433MHz alarm sensors & PIRs, etc & plenty of time I have been able to start down the path of automating my home.
For instance it is fantastic that as I move throughout my home the lights turn on & off as I go. They dim after 9PM on weekdays or turn off when I turn on my home theatre & watch something.
I can schedule my washing machine to start an hour before I wake up on the weekend (when it is loaded the night before) & have it notify me when it is finished, making sure the clothes get the maximum sun exposure to dry & saving me time in the morning.
When I leave home the WiFi MQTT alarm is automatically armed if no-one is home. When I return home the alarm can be disarmed & the garage door can be opened for me so I can just drive in.
Occupancy sensors under the bed stop the bedroom light coming on due to PIR sensors detecting movement in the night.
My solar/battery powered letterbox notifies me when I have letters & how many so I remember to check it.
HASS audio alerts & text to speech from automations or music I’m listening to is sent to the bluetooth speaker system in the room I am currently located in.
The list goes on & on, but I digress. Thank you again.
I am currently attempting to control the brightness & colour of my lights when used by automations, with values derived from input sliders. This is to avoid hard coding values in to the automations.yaml I have.
This snippet currently works & allows me to turn on the light at the brightness I have set with an input slider:
service: light.turn_on
entity_id: light.bedroom
data:
rgb_color: [255, 255, 255]
data_template:
brightness: '{{ states.input_slider.light_brightness.state }}'
When I attempt to template the rgb_color as follows (which looks ok in the template editor):
service: light.turn_on
entity_id: light.bedroom
data_template:
brightness: '{{ states.input_slider.light_brightness.state }}'
rgb_color: '[{{ states.input_slider.light_red.state }}, {{states.input_slider.light_green.state }}, {{states.input_slider.light_blue.state }}]'
I get the following error message:
homeassistant.core: Invalid service data for light.turn_on: None for dictionary value @ data['rgb_color']
If I remove the single quotes at the beginning & end of the rgb_colour line, HASS fails to load. I have tried:
data:
rgb_color: '[255, 255, 255]'
To test if the quotes are able to be used, but this also causes HASS to fail to load.
So it seems with or without those quotes, neither will allow HASS to load. Does anyone have any insight in to what might be a work around or fix for this? I have done a lot of research of these forums & Google. https://community.home-assistant.io/t/issues-with-input-slider-together-with-in-automation/1152/3 is how I got the brightness working.
Any help would be appreciated, thanks for your time.