You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Tasmota the snoff mqtt adapter is more comfortable as it does smart processing of mqtt messages. Therefore you find already serialized json objects as single state in the device channel.
For that reason with Tasmota you do use snoff mqtt client. However for NsPanelTs.ts that's not working.
The script NsPanelTs.ts requires 2 topics:
With snoff Adapter CustomSend topic can be used and created in same way as already published in documentation as it does not have json content
(btw. option 2 from documentation does not work with standard MQTT Client/Server)
NSPanelReceiveTopic would be available as well, but as it is already de-serialized it does not work with the NsPanelTs.ts. The script try's to parse josn and extract the relevant part of the json message, but snoff adapter does already provide the relevant json part in this object.
ADDITIONAL CONTEXT
It would be nice if you can also support optional snoff mqtt adapter. In fact the script does have everything, in case of snoff it just should not
I think the Sonoff adapter solution has more pitfalls than just the one change.
I'll take a look at it and evaluate it.
It currently works great with the methods of creating the CustomSend as a data point (Example 1) or alternatively with the MQTT Explorer (Example 3) and I don't see any real advantages with the Sonoff adapter.
The future "Sonoff NSPanel Lovelace UI" adapter is in development and solves the MQTT problem with CustomSend independently. An MQTT adapter and also a Sonoff adapter are then no longer needed. In addition, the adapter has a lot of features and is also a lot faster than the current scripts.
Thanks for quick replay. Actually I do not use snoff adapter because of CustomSend (I do not see an issue with current implementation either, even it must be manually created).
That is just more a general decision to use snoff running many Tasmota devices. As mentioned, it does create automatically any singe topic you find in Tasmota regardless the use case /sensor / multiple sensors /scrips e.g . There is no need to touch anything in iobroker adding additional devices, topics are just there.
Even for NSPanel only, that has no real advantage, as for the script you will only need 2 topics.
The impact is more that now
you have to add an additional MQTT adapter
for that reason you must have a different MQTT configuration on NSPanel compared to any other Tasmota device
most important: you do not get relevant information in the same structure as you do with any other Tasmota device. If you run whatever beside NsPanelTs.ts (e.g. firmware / configuration management / device monitoring) to have same structure of device tree will be essential.
I was not aware of the new adapter. However, if that comes with build in MQTT most probably it will have same behavior.
FEATURE DESCRIPTION
The current NsPanelTs.ts script is relays on standard MQTT Client/Server.
Using Tasmota the snoff mqtt adapter is more comfortable as it does smart processing of mqtt messages. Therefore you find already serialized json objects as single state in the device channel.
For that reason with Tasmota you do use snoff mqtt client. However for NsPanelTs.ts that's not working.
The script NsPanelTs.ts requires 2 topics:
With snoff Adapter CustomSend topic can be used and created in same way as already published in documentation as it does not have json content
(btw. option 2 from documentation does not work with standard MQTT Client/Server)
NSPanelReceiveTopic would be available as well, but as it is already de-serialized it does not work with the NsPanelTs.ts. The script try's to parse josn and extract the relevant part of the json message, but snoff adapter does already provide the relevant json part in this object.
ADDITIONAL CONTEXT
It would be nice if you can also support optional snoff mqtt adapter. In fact the script does have everything, in case of snoff it just should not
example: current:
intended:
PANEL / FIRMWARE VERSION
The text was updated successfully, but these errors were encountered: