@ydn wrote:
Hi! Can someone help me out with this brain killer?
Ik have this HomeConnect integration and it does display every part of the Oven as a separate sensor. So like the sensor names are:sensor.oven_power (values: on or off)
sensor.oven_program_preheating (on or off)
sensor.oven_program_progress (xxx%)I wish to display the state of the oven in a picture-glance. So, I can show the state of the oven with the corresponding picture.
1 oven_off.png
2 oven_on.png
3 oven_pre.png
4 oven_baking.png
5 oven_finshed.pngThe problem is, there are multiple sensors. So, I can’t use state_image with:
state_image:
“1”: /local/ oven_off.png
“2”: /local/ oven_on.png
“3”: /local/ oven_pre.png
Etc.Is there someone who knows a solution for this?
I was thinking of a template that can combine the sensor entity’s and generate an new oven.entity with a state from 1 to 5 or something. From that state, I can use the picture glance with state_image: 1, 2, 3 etc.Such a state could be calculated by IF sensor.oven_power is on AND sensor.oven_program_preheating is on AND sensor.oven_program_progress is < 1% THEN state must be 3. For example.
I can’t get my head around this how I should program such a template. Is there someone that understands the templating deeply enough to get me underway? I’ve been breaking my head on this all day.
I wish to use the standard out of the box home assistant tools, no custom components.Thanks!
Posts: 3
Participants: 2