As of V 2021.3 - the scrolling in the script/automation editor in the text mode does not work.
For those of you who thinks that clicking the mouse to make a missing lines to appear is a ‘work around’ - try to copy several screens of code (first couple of screens it would show) - for this reason it is the second update I have to miss and roll back to the last working version - 2021.2.
Come on, people - it is just a scrolling! Should I rise another issue about it? Because I did so to the update 2021.3, and now the same thing to 2021.4 …
The idea with tracing variable is nice, but there is a fat bug sitting on a jucy leaf:
* Template variable warning: 'FALSE' is undefined when rendering '{{ trigger.event.data.entity_id|regex_search('sensor.engineering_heat_buffer_temp', ignorecase=FALSE) or trigger.event.data.entity_id|regex_search('input_number.engineering_power_src_switch_temp', ignorecase=FALSE) or trigger.event.data.entity_id|regex_search('switch.engineering_heat_scource', ignorecase=FALSE) }}'
I have the same error. I tried removing ZHA but no luck.
Logger: homeassistant.setup
Source: setup.py:162
First occurred: 10:43:23 AM (1 occurrences)
Last logged: 10:43:23 AM
Setup failed for zha: Unable to import component: cannot import name 'setup' from 'zhaquirks' (/config/deps/lib/python3.8/site-packages/zhaquirks/__init__.py)
Yes, because the correct keywords are false or False. So potentially your template never actually worked as you intended, but now the log is able to tell you that.
So not really a “fat bug” as you called it, but “user error” .
The special constants true, false, and none are indeed lowercase. Because that caused confusion in the past, (True used to expand to an undefined variable that was considered false), all three can now also be written in title case (True, False, and None). However, for consistency, (all Jinja identifiers are lowercase) you should use the lowercase versions.
Yep… I’ve taken this syntax from some tutorial on regex_search/replace, and it never gave me a warning or error, and sure it worked - just replace/search stuff and that’s it. I never really thought about the need of this, untill one day I omitted this part and it still worked. Infact, one could easily not use this param since in HA everything is lowercase… But today I started getting warnings from long forgotten scripts that I coded half a year ago… And in 1 hour I’ve got … 5 500 000 of such warnings, all for one reasonf - FALSE. So, I assumed, that since it did work all that time, it is ok to pass it as it was in that manual.
Logger: homeassistant.helpers.template
Source: helpers/template.py:1335
First occurred: 13:07:13 (1771 occurrences)
Last logged: 13:31:22
Template variable warning: float object has no element 1 when rendering '{{value_json['ENERGY']['Factor'][1]}}'
Template variable warning: int object has no element 0 when rendering '{{value_json['ENERGY']['Voltage'][0]}}'
Template variable warning: int object has no element 1 when rendering '{{value_json['ENERGY']['Voltage'][1]}}'
Template variable warning: float object has no element 0 when rendering '{{value_json['ENERGY']['Current'][0]}}'
Template variable warning: float object has no element 1 when rendering '{{value_json['ENERGY']['Current'][1]}}'