The unsubscribe/subscribe routine is bugging me.
The manual triggering just does not seem to work, or at least it does not cause an update of all subscribed topics (I do not know which).
Steve-McI posted a nice flow with subscription methods but it seems some of it is deprecated.
The action get Subscriptions
is no longer a known action.
Is there a replacement? I would really like to figure out why
[{"id":"1657173e48fb201c","type":"function","z":"c36d205f4de85948","g":"a226a0e21c332e03","name":"unsubscribe & re-subscribe \\n to tasmota/discovery/+/#","func":"msg.action=\"unsubscribe\"\nmsg.topic=\"tasmota/discovery/+/#\"\nnode.send(msg)\nmsg.action=\"subscribe\"\nmsg.topic=\"tasmota/discovery/+/#\"\nnode.send(msg)","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":220,"wires":[["70e9b55ef7ca2f55"]]},{"id":"70e9b55ef7ca2f55","type":"delay","z":"c36d205f4de85948","g":"a226a0e21c332e03","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":760,"y":220,"wires":[["b50de04198753bc2"]]},{"id":"b50de04198753bc2","type":"mqtt in","z":"c36d205f4de85948","g":"a226a0e21c332e03","name":"Update discovery topics \\n on manual triggering","topic":"","qos":"0","datatype":"json","broker":"0d7f426189a0c8d3","nl":false,"rap":true,"rh":0,"inputs":1,"x":1000,"y":220,"wires":[["f932ad76700449cb"]]},{"id":"0d7f426189a0c8d3","type":"mqtt-broker","name":"MQTT RPi","broker":"192.168.0.2","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]
with a rate limited does nothing but deploying always updated all subscriptions.