Color me confused. Your cmd line code says to turn the light off and the screenshot says to turn it on, which the Explorer indicates.
So, what is the question?
By the way, obsfucating a local (private) IP address is like covering your eyes and thinking you’re invisible. (almost) EVERYBODY uses an IP of 192.168.1.X. Your private IP address is behind your router and it is meaningless to everyone else. Including hackers.
Good eye on the on / off discrepancy. I’ve been attempting a lot of variations / iterations. The reason for the on / off discrepancy is because I took the screenshot before I made a change in the cmd line. I should have taken an updated screenshot. I apologize for the confusion.
In the most current iteration, I’ve created an MQTT sensor and am trying to toggle it on/off.
Configuration.yaml line:
mqtt:
sensor:
- name: "Command line Testing"
state_topic: "ahk_mosquitto_cmd"
The command_topic is what topic you use to send a payload to the device. state_topic is what the device sends back. payload_on is the payload you send to the device to turn it on.
You can guess what payload_off does.
Your command line sends “on” to the topic “ahk_mosquitto_cmd”.
@stevemann Thank you again for your help / suggestions.
I’m getting an invalid config error when I try configuring my sensor with these parameters. Home assistant doesn’t appear to like the “command_topic” keywords used (see error screenshot). If I delete that line, then it moves to the first payload line and says it doesn’t like it. Then, if I delete that, it complains about the next payload line. Then, if I delete that, it complains about the retain line.