Mosquitto mqtt setup not receiving messages

I just recently got into Home Assistant, and I am having issues working with my MQTT devices. I know that the devices work, as I can connect to them if I run them through my other MQTT broker, but when I try to use Hass.IO, I run into problems. I have done searches, but nothing seems to help.
mosquitto.config
{
“logins”: [],
“anonymous”: true,
“customize”: {
“active”: false,
“folder”: “mosquitto”
},
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

config.yaml:
mqtt:
broker: 10.0.0.163
#username:
#password:
light:
- platform: mqtt
name: “Tester”
command_topic: “/test/room/set”
payload_on: “ON”
payload_off: “OFF”

the light is just a test to see if the MQTT is actually working. I then SSH into it and use the following code to look for the topics:
mosquitto_sub -h 10.0.0.163 -t "test/room/#"
Howver, I do not see any topics come across. This is my mosquitto.log at the bottom of the page which tells me that my ssh is connected:
1546983494: New client connected from 172.30.32.1 as mosqsub|792-core-ssh (c1, k60).
Is there a log or file, that allows me to see the history of all messages sent?

In a related, but seperate issue, when I try to connect to the hass.io from my computer I get following:
1546983727: New client connected from 10.0.0.69 as mosqpub/1244-Frankie (c1, k60).
1546983727: ACL denying access to client with dangerous client id “mosqpub/1244-Frankie”
1546983727: Client mosqpub/1244-Frankie disconnected.

I understand that it has to do the dash before Frankie, but not sure how to get around it.

Thanks
Paul

test/room is not the same as /test/room. Ditch the initial /

https://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices/

I’m Having the same issue in the Mosquitto log where a client is being denied. Googling this issue does not point me in a direction for troubleshooting. From what i can tell Mosquitto is set up correctly but am not certain as this is my first client.

1547244110: ACL denying access to client with dangerous client id “shadePosition/shade_stepper”

Mosquitto is set to the IP of my home assistant because as I understand it Mosquitto runs on HA.

Here is the code in my config file.

input_number:
  mqtt_shade:
    name: MQTT Shade
    initial: 0
    min: 0
    max: 13
    step: 1

automation old:
  - alias: Send MQTT Shade Value
    trigger:
      platform: state
      entity_id: input_number.mqtt_shade
    action:
      - service: mqtt.publish
        data_template:
          topic: "shadePosition/shade_stepper" 
          payload_template: "{{ states('input_number.mqtt_shade')  | int }}"
          qos: 2
          retain: true

I think that mosquitto doesn’t like / in the client id. There was a reference in another thread, but I cannot find it now.

What software is your shade stepper running (ie tasmota, espurna etc)

Thank you I have updated the confg with no “/” to “shadePositionshade_stepper” The Mosquitto log file is showing all is good. But no response from my connected device.

[INFO] Setup mosquitto configuration
[INFO] No local user available
[INFO] Initialize Hass.io Add-on services
[INFO] Initialize Home Assistant discovery
[INFO] Start Mosquitto daemon
1547298754: mosquitto version 1.4.15 (build date 2018-03-04 15:35:59+0000) starting
1547298754: Config loaded from /etc/mosquitto.conf.
1547298754: *** auth-plug: startup
1547298754: ** Configured order: http
1547298754: Opening ipv4 listen socket on port 1883.
1547298754: Opening ipv6 listen socket on port 1883.
1547298754: Opening websockets listen socket on port 1884.
1547298754: Opening ipv4 listen socket on port 8883.
1547298754: Opening ipv6 listen socket on port 8883.
1547298754: Opening websockets listen socket on port 8884.
1547298754: Warning: Mosquitto should not be run as root/administrator.
1547298759: New connection from 192.168.0.29 on port 1883.
[INFO] found on Home Assistant
1547298760: New client connected from 192.168.0.29 as shadePositionshade_stepper (c1, k15, u’‘).
1547298793: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1547298793: New client connected from as d2fde68a-b049-4420-b982-14fc4656bd5f (c1, k60, u’homeassistant’).

This project is running the following arduino code on esp8266 where i can see that the device connects to WiFi and then connects successfully to MQTT.
I have not tried running a program that will flash the esp8266. That is probably my next step in troubleshooting since the device is not responding from commands sent from home assistant.

Motorized Shade Code from Rob

You can check what mqtt messages are being received with mosquitto_sub and send test messages with mosquitto_pub