Mqtt add new device

i am trying to install this great project, HA SwitchPlate.

I have installed Home Assistant Operating System on vmware virtual machine

When the device connects to brokermqtt it should create a new device but this does not happen.
The device is connected to the mosquitto broker, add new entities on mqtt integrations is on.

if i look with mqtt explorer i find:

hasp
▼plate01
status = OFF
sensor = {"espVersion":1.01,"updateEspAvailable":false,"lcdConnected":true,"lcdVersion":"999","updateLcdAvailable":false,"espUptime":363,"signalStrength":-61,"haspName":"plate01","haspIP":"192.168.1.61","haspClientID":"plate01-68c63af8cd5f","haspMac":"68:c6:3a:f8:cd:5f","haspManufacturer":"HASwitchPlate","haspModel":"HASPone v1.0.0","heapFree":23336,"heapFragmentation":5,"heapMaxFreeBlockSize":22336,"espCo…
▼light
state = ON
▼brightness
state = 100
▼display_camera
▼light
state = OFF
▼brightness
state = 0
status = OFF
sensor = {"espVersion":1.01,"updateEspAvailable":false,"lcdConnected":true,"lcdVersion":"0","updateLcdAvailable":false,"espUptime":4260,"signalStrength":-72,"haspName":"display_camera","haspIP":"192.168.1.67","haspClientID":"display_camera-68c63af8cd5f","haspMac":"68:c6:3a:f8:cd:5f","haspManufacturer":"HASwitchPlate","haspModel":"HASPone v1.0.0","heapFree":23064,"heapFragmentation":3,"heapMaxFreeBlockSize"…
▼homeassistant
▼light
▼plate01
config = {"name":"plate01 backlight","command_topic":"hasp/plate01/light/switch","state_topic":"hasp/plate01/light/state","brightness_state_topic":"hasp/plate01/brightness/state","brightness_command_topic":"hasp/plate01/brightness/set","availability_topic":"hasp/plate01/status","brightness_scale":100,"unique_id":"plate01-68c63af8cd5f-backlight","payload_on":"ON","payload_off":"OFF","payload_available":"ON"…
▼display_camera
config = {"name":"display_camera backlight","command_topic":"hasp/display_camera/light/switch","state_topic":"hasp/display_camera/light/state","brightness_state_topic":"hasp/display_camera/brightness/state","brightness_command_topic":"hasp/display_camera/brightness/set","availability_topic":"hasp/display_camera/status","brightness_scale":100,"unique_id":"display_camera-68c63af8cd5f-backlight","payload_on":…
▼sensor
▼plate01
config = {"name":"plate01 sensor","json_attributes_topic":"hasp/plate01/sensor","state_topic":"hasp/plate01/status","unique_id":"plate01-68c63af8cd5f-sensor","icon":"mdi:cellphone-text","device":{"identifiers":["plate01-68c63af8cd5f"],"name":"plate01","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.01}}
▼display_camera
config = {"name": "display_camera sensor", "json_attributes_topic": "hasp/display_camera/sensor", "state_topic": "hasp/display_camera/status", "unique_id": "display_camera-68c63af8cd5f-sensor", "icon": "mdi:cellphone-text", "device": {"identifiers": ["display_camera-68c63af8cd5f"], "name": "display_camera", "manufacturer": "HASwitchPlate", "model": "HASPone v1.0.0", "sw_version": 1.01"}
▼number
▼plate01
config = {"name":"plate01 active page","command_topic":"hasp/plate01/command/page","state_topic":"hasp/plate01/state/page","retain":true,"optimistic":true,"icon":"mdi:page-next-outline","unique_id":"plate01-68c63af8cd5f-page","device":{"identifiers":["plate01-68c63af8cd5f"],"name":"plate01","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.01}}
▼display_camera
config = {"name":"display_camera active page","command_topic":"hasp/display_camera/command/page","state_topic":"hasp/display_camera/state/page","retain":true,"optimistic":true,"icon":"mdi:page-next-outline","unique_id":"display_camera-68c63af8cd5f-page","device":{"identifiers":["display_camera-68c63af8cd5f"],"name":"display_camera","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.01}}

The device you want to add needs to send a single discovery message first, see MQTT Discovery - Home Assistant

It’s a long time ago that I played around with MQTT, I vaguely remember that an extra restart of HA Core was needed when the discovery message is present.

I have check MQTT Discovery and I try the example

I use the “Configure” option under the “MQTT” integration. Under “Publish a packet* , “topic” “homeassistant/binary_sensor/garden/config” and “Payload” ‘{“name”: “garden”, “device_class”: “motion”, “state_topic”: “homeassistant/binary_sensor/garden/state”}’

After that on topic “homeassistant/binary_sensor/garden/state” and Payload “ON”

With Mqtt explorer I find a binary_sensor under homeassistant but this binary sensor is not created under device

I also restart of HA Core

This all looks good.

I wrote this a long time ago when I was using MQTT-sensors:
When you have performed the MQTT discovery, via Configuration → Integrations → configure the new MQTT-item on the top of the page (if you have other MQTT-integrations and the new sensors do not show up, delete the existing MQTT-integrations, restart HA and perform the MQTT-integration again), you will need to restart HA once more for the new sensors to show up.

Please try the part between the brackets and then restart HA Core once more.

A the end I have disintalled the mosquitto addon , commit all mqtt reference in configuration.
reinstall the mosquitto add on and now works thanks