FYI, the Template Editor is also behaving differently than in previous releases.
What concerns me is this example. The join(', ')
filter should be converting the list into a comma-delimited string. However the result remains a list.
FYI, the Template Editor is also behaving differently than in previous releases.
What concerns me is this example. The join(', ')
filter should be converting the list into a comma-delimited string. However the result remains a list.
Don’t you mean previous version 0.117.6 ?
Our old Ipad witch IOS 9x can now login with Safari buth custom components not working. Red screen, custom component not found.
In version 117.6 everything was ok, after updating to 118 (118.1, 118.2) I have a problem with fritzbox_netmonitor sensor, so I returned to version 117.6 :
2020-11-21 13:44:25 ERROR (MainThread) [homeassistant.components.sensor] fritzbox_netmonitor: Error on device update!
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 359, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 466, in async_device_update
await task
File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/util/init.py”, line 239, in wrapper
result = method(*args, **kwargs)
File “/usr/src/homeassistant/homeassistant/components/fritzbox_netmonitor/sensor.py”, line 122, in update
self._bytes_sent = self._fstatus.bytes_sent
File “/usr/local/lib/python3.8/site-packages/fritzconnection/lib/fritzstatus.py”, line 83, in bytes_sent
return _integer_or_original(status[‘NewX_AVM_DE_TotalBytesSent64’])
KeyError: ‘NewX_AVM_DE_TotalBytesSent64’
2020-11-21 13:44:41 INFO (MainThread)
Which FritzBox are you using? Mine is working fine (7590)
Model:
FRITZ!Box 3390
FRITZ!OS[06.52]
All I need is online status and a external IP address.
Unfortunately, there is a sensor error after the update.
How is your config for the Fritz netmonitor?
sorry… yes 117.6
until version 117.6 everything worked on.
platform: fritzbox_netmonitor
name: fritz.net
host: !secret fritz_ip
platform: template
sensors:
external_ip:
friendly_name: “External IP Address”
entity_id: sensor.fritz_net
value_template: “{{ state_attr(‘sensor.fritz_net’, ‘external_ip’) }}”
icon_template: mdi:wan
Not sure if you can give a name to the sensor
I don’t use and input date times so I guess that’s why I have not noticed
Well, like I said, everything is fine up to version 117.6, only after updating to 118 it shows errors.
Oh crap… I use that join… to create a list of entity id’s. Seems to be still working though…
Then you should open a bug in github
It only affects arm 32bit
Yeelink.light.mono5 doesn’t work anymore
That’s the kicker. By definition, the join filter returns a string. However, as seen above, the Template Editor indicates the result is a list. It appears that ‘automatic type-conversion’ is taking place. The comma-delimited string looks like a list so the system converts it to an actual list.
Anyway, that’s my uneducated guess as to what’s going on. This unsolicited ‘type inference’ has caused complications for users of the Sonoff RF Bridge. The device always sends RF codes as strings. However, in 0.118, if any of those strings contain numbers, it automatically gets converted to integer. This breaks the simple string comparisons that worked in previous releases.
Not sure why the system is compelled to convert strings to integers just because they are numeric. For example, the string '23E45'
is interpreted as being a number in scientific notation (23 to the power of 45). Any attempt to perform string matching with that causes an error message (recently reported by a user).
Right and the entity_id will accept either a comma separated list of entities or an actual list so it works with either behaviour.
Yes but consider an application of join
that isn’t for use with entity_id
. For example, you want a comma-delimited string of friendly_names to display as the state of a Template Sensor (example: all open doors). An entity’s state can only be a string.
So is there a solution if you want to do that?