Having state topic and command topic being the same certainly looks suspicious: the commands will be off, strobe, and siren but the states are off and armed_away - I suspect your commands are overwriting the state information.
I’m a little new to this so forgive me but I just monitored the broker logs to see what came in, and that’s the only thing I could see related to the alarm. Not sure what else to check.
So after a bit of playing around, it seems I need to figure out how to publish the state topic changes into its own topic (something like Visonic Alarm/status) and point the status topic to that.
I’ve managed to get the status to show as “Armed Home” by running this in the dev tool, but obviously I need to find a way to publish these status changes automatically.
Alright, in case anyone finds this useful, I’ve found a semi-ish solution that seems to work (for the past hour or so at least). It’s just an automation that calls the service to change the state topic so it displays correctly on the HA front end. It’s my first automation, and it was actually a pretty fun learning experience.
It’s probably terrible and not the most efficient, but it suits my needs as of right now.
Great idea. I use a Nodemcu (ESP8266) with my Visonic and the smartthings firmware you mentioned. I had to reconfigure the payloads and topics but now it’s up and running. Thanks!