Discovery Message

Hi,

i’m trying to send a discovery message for an alarm… but it seems not working… what is the problem? I use this kind of message for other entity but for alarm i don’t understand how make it works :frowning:

mosquitto_pub -r -h 127.0.0.1 -u myuser -P mypass -p 1883 -t "home/alarm/config" -m '{"name": "myalarminim", "state_topic":"home/alarm", "unique_id": "myalarm01d", "device": {"identifiers": ["01adxasd"], "name": "My Inim Alarm" }, "supported_features": "3", "code_format": "number"}'

{
   "name":"myalarminim",
   "state_topic":"home/alarm",
   "unique_id":"myalarm01d",
   "device":{
      "identifiers":[
         "01adxasd"
      ],
      "name":"My Inim Alarm"
   },
   "supported_features":"3",
   "code_format":"number"
}

I’m on a phone. Can you post the packet with better formatting

i’ve edited first message, just try to check… thank in advance!