Oleksandr Berchenko
Oleksandr Berchenko
Does ```{{ 3 if (states.variable.stair_state.state | int) == 1 else 2 }}``` work?
Try this: ``` - service: variable.set_variable data_template: variable: test value_template: '{{ states.variable.test.state + trigger.payload }}' ```
I don't think it's possible to assign a unit of measurement to a variable (treat it like a usual "variable" in a programming language), but you can setup a sensor...
Isn't it fixed already?
This should work: ``` - service: light.turn_on entity_id: light.gateway_light data_template: brightness: 4 rgb_color: ["{{ states.variable.red_color.state | int }}", "{{ states.variable.green_color.state | int }}", "{{ states.variable.blue_color.state | int }}"] ```
Well, in theory looks simple :) But I need a real one to make an accurate fix. Also noctarius documentation mentions: ``` Luminance value / Battery value (Motion Detector) Red...
In theory, support for the sensors in the library itself should be trivial (it just needs to be accurately tested with real devices). It may look something like: ``` def...
I'm wondering whether `luminance` really means battery level for a motion sensor. I hoped it may work for switches, but it doesn't (at least for my 4-button switches). Currently all...
No problem, I will add the alpha method. Well, the main question is: how do you use that value? :) From my experience, it never changes (that's why it's not...
@durera So, is that property actual for all device types or just for some particular ones? Do I need to preserve `int` or to convert it to `bool`? Thanks!