MQTT Help Needed

Preformatted textIn need of a little help I can not seam to get this to work I have motion sensors working with out issue but cant get this Aeotec Siren to work.

switch:
  - platform: mqtt
    name: “Loud Alarm”
    state_topic: “smartthings/Aeotec Siren (Gen 5)/alarm/state”
    command_topic: “smartthings/Aeotec Siren (Gen 5)/alarm/cmd”
    availability_topic: “smartthings/Aeotec Siren (Gen 5)/alarm/available”
    payload_on: “ON”
    payload_off: “OFF”
    optimistic: false
    qos: 0
    retain: true

are the topics correct? That’s probably the first thing to look at.

Please use code blocks and syntax highlighting when posting config snippets.

switch:
  - platform: mqtt
    name: “Loud Alarm”
    state_topic: “smartthings/Aeotec Siren (Gen 5)/alarm/state”
    command_topic: “smartthings/Aeotec Siren (Gen 5)/alarm/cmd”
    availability_topic: “smartthings/Aeotec Siren (Gen 5)/alarm/available”
    payload_on: “ON”
    payload_off: “OFF”
    optimistic: false
    qos: 0
    retain: true

I’ve re posted the code below & yes the stat and topics are a copy past from the MQTT Smartthings Plugin for HASSIO I have a motion sensor working with out issue set up the same but cant get this working.

I think your problem lies in the copy paste as the quote you have won’t work with HA, they need to be " or a single quote ’

I’m not sure what you mean? As my code has " in it.

Don’t use spaces in a topic
A space is the natural enemy of each programmer, they often make it much harder to read and debug topics, when things are not going the way, they should be. So similar to the first one, only because something is allowed doesn’t mean it should be used. UTF-8 knows many different white space types, it’s pretty obvious that such uncommon characters should be avoided.

What @keithh666 is referring to is that your code has vs ". Likely an incorrect copy from somewhere.