I have a Neo siren which is connected and recognised by MQTT. In Devices, the relevant part of theconfig looks like this. You set the config and then turn the device on to hear the sound.
As far as I’ve tested, the UI behaves correctly when using this device and honours your settings. The template which it publishes to set the config looks like this (captured by Listening to the topic)
{“alarm”:false,“battery_low”:null,“battpercentage”:100,“duration”:null,“linkquality”:153,“melody”:2,“volume”:“low”}
So I am trying to create some automations using this device, with different configs depending on the trigger. I was struggling for hours with this, trying to change elecments individually and also with loops and pauses, as have been suggested elsewhere.
Eventually I decided I should just copy the generated template from Listen, which I did.
When you run that element of the autmaiotn you can see in Developer Tools that the values have been changed correctly.
However when you turn on the device (to make the sound) the values all revert back to however the UI is set and my config is ignored. Publishing the package manually makes no difference.
The published packets look identical so it must be something in the device turn-on which is reverting the settings. (Not surprisingly) the device turn-on doesn’t appear in the messages to the topic – only resending the (wrong) config does.
Any ideas please? I can see there have been a number of similar queries but so far none of them have been useful.