This is my attempt to solve Koenkk/zigbee2mqtt#8154
I do not have the device but it should not be that hard to cache all attribute and publish them together after a delay.
I was not able to test the converter but it compiles and it it successfully loaded on my end.
I will keep the latest version in TS0601_air_filter.js
below.
HOW TO INSTALL:
- Drop the file
TS0601_air_filter.js
in the directory containingconfiguration.yaml
(e.g./opt/zigbee2mqtt/data/
) - Add the external converter either in the Z2M web frontend or in
configuration.yaml
external_converters:
- TS0601_air_filter.js
- (OPTIONAL) Check that the converter compiles successfully by running
node TS0601_air_filter.js
. That only works for files in the Z2M directory. - Restart Z2M.
- If the device description now read
Air quality sensor (WITH DELAYED OUTPUT)
then the external converter was successully loaded. - Otherwise, the default converter was used. The log file probably contains some error messages. Please post them below.