I have a group of lights that is controlled only through an input number that an automation picks up and does things with. I’m struggling to have my voice assistant make any changes to that input number.
I have created an automation with a sentence trigger but it isn’t ever actually triggering.
alias: voice.living room brightness
description: ""
trigger:
- platform: conversation
command:
- (set|change) living room (lights|brightness) to {brightness}
- set living room lights to {brightness}
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.lr_brightness
data:
value: "{{ trigger.slots.brightness }}"
mode: single
When I type the sentence into the assist box, it tells me that it can’t do it. The automation never triggers.
Any particular reason you are not using a light group? If the brightness slider needs some calculations I’d use a template light (and it’s brightness instead of the input number). Voice understands that natively.
Because this is a really weird light setup…
I used one of those ugly 5 headed lamps and each head has a rgbw bulb. The input_number goes from 0-290: 0-100 per RGB channel, 101-200 fading up to rgb white, and 201-290 with the white leds. (~10%W == 100% RGB) The automation does color corrections and slowly cycles the colors on each light so that the average of all 5 is always white.
A different automation adjusts the input_number brightness based on time of day/occupancy/other sensors (I’ve found that the current generation sensor for my solar works really well or estimating how bright it is indoors)
It’s an ugly hack, but I put the 5 bulbs in a light group and then made a template light to allow setting the brightness with voice, but the maximum is 255 vs 290.
I think it will be great if input_number can be changed by voice assist.
Recently, I tried to ask voice assist to parse my wording and get the channel number while I’m asking to change the channel.
My intention is to have voice assist save the channel number to an input_number and trigger an action which sending the IR code to settop box for channel changing.
Unfortunately, it doesn’t work, voice assist replied the input_number can read but not be wrote! I wonder if I made any mistake or such action is really not workable by voice assist? Hope someone can help me for this question! Thanks!