Well we are getting there, I can see all of my switches with the exception of one that is still unavailable. I had to keep the switch in the configuration file to eliminate errors.
# MQTT Broker Information
switch:
- platform: mqtt
name: "Coffee Room Floor Light"
state_topic: "tele/coffeeroomfloorlight/STATE"
value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/coffeeroomfloorlight/POWER"
availability_topic: "tele/coffeeroomfloorlight/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false
- platform: mqtt
name: "Office Floor Light"
state_topic: "tele/officefloorlight/STATE"
value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/officefloorlight/POWER"
availability_topic: "tele/officefloorlight/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false
- platform: mqtt
name: "Master Bed Room TV"
state_topic: "tele/masterbedroomtv/STATE"
value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/masterbedroomtv/POWER"
availability_topic: "tele/masterbedroomtv/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false
Coffee Room Switch I have to move the slider switch a half of dozen time for it to come ON once, then it goes OFF in 2 seconds. on the sonoff GUI I can turn it ON and also goes OFF in 2 seconds.
Office Switch is unavailable. On the sonoff GUI I can turn it ON and OFF.
Master Bed Room TV does not come on at all. On the sonoff GUI I can turn it ON and OFF.
I hate to ask you if you have any more suggestions, just tell me to go blow smoke, lol.
When I am on the sonoff GUI for the Coffee Room Switch in the console I turned the switch ON and it went off in 2 seconds but never showed it was on.
03:48:41 MQT: Connected
03:48:41 MQT: tele/coffeeroomfloorlight/LWT = Online (retained)
03:48:41 MQT: cmnd/coffeeroomfloorlight/POWER =
03:48:42 MQT: stat/coffeeroomfloorlight/RESULT = {"POWER":"OFF"}
03:48:42 MQT: stat/coffeeroomfloorlight/POWER = OFF
Here is the Office Light from sonoff GUI, noticed it does not say connect:
03:49:51 MQT: stat/officefloorlight/RESULT = {"POWER":"ON"}
03:49:51 MQT: stat/officefloorlight/POWER = ON
03:49:55 MQT: stat/officefloorlight/RESULT = {"POWER":"OFF"}
03:49:55 MQT: stat/officefloorlight/POWER = OFF
Here is the sonoff GUI for the Bed Room:
03:52:45 MQT: tele/masterbedroomtv/LWT = Online (retained)
03:52:45 MQT: cmnd/masterbedroomtv/POWER =
03:52:48 MQT: Attempting connection...
03:52:49 MQT: Connected
03:52:49 MQT: tele/masterbedroomtv/LWT = Online (retained)
03:52:49 MQT: cmnd/masterbedroomtv/POWER =
This switch is trying to connect like the other one.