The blueprint references a symbol zwave_device
which is not defined. This results in a log entry:
WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'zwave_device' is undefined when rendering '{{ zwave_device }}'
very time my automation is triggered.
cree8
(Cree8)
January 6, 2022, 5:55pm
22
This should be fixed now. Let me know if you continue seeing the error occur.
cree8
(Cree8)
January 6, 2022, 5:56pm
23
I had to manually figure this out as well. I suppose it would be appropriate to rename the buttons according to their real-life positioning. I will get to this at some point, thanks for the tip
1 Like
How do I update it? I deleted and re-installed it, and it looks the same as before.
cree8
(Cree8)
January 26, 2022, 1:51am
25
Mine is changed, but I still get the error again, so I’ll need to reexamine
This warning now says zwavejs_device
instead of zwave_device
2022-04-19 08:35:53 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'zwavejs_device' is undefined when rendering '{{ zwavejs_device }}'
Is there something I need to do to update the blueprint or the automations I created from it?
kreene1987
(Kevin Reene)
April 22, 2022, 6:17pm
27
I agree, the variable is never defined.
I did the following changes:
added device_name description (3rd line)
variables:
device_id: !input 'inovelli_fan_switch'
device_name: "{{ device_attr(!input 'inovelli_fan_switch','name') }}"
Modified log entry to call the device_name variable (4th line):
- service: logbook.log
data:
name: Device
message: '{{ device_name }}'
@cree8 maybe update/test and see if that works for you?
Also, if you host on Github I can do a pull request with the changes…
cree8
(Cree8)
May 3, 2022, 6:25pm
28
Here is the Github repo: cree8/inovelli_lzw36_blueprint (github.com)
Once you initiate the pull request, I’ll test then merge later this evening. (At least, I think that’s how the workflow should proceed!)
cree8
(Cree8)
May 5, 2022, 3:25am
30
So far, the pull request page is empty for me
cree8
(Cree8)
June 11, 2022, 10:01pm
31
Went ahead and learned some of the blueprint yaml syntax and corrected the variable issue. Button presses should show up as proper events within the log now, and the undefined variable error should no longer occur.
notmayo
(notmayo)
November 17, 2023, 9:49am
32
Hey @cree8 ,
I just wanted to tell you thank you as I just implemented this shockingly easily into my house. Now with two double presses of the “A” button the applicable room’s accent lights can be toggled.