What is the difference between the state and command topic as seen in the below example:
switch 1:
-
- platform: mqtt*
- name: “MQTT Switch 1”*
- state_topic: “/house/switchConfirm1/”*
- command_topic: “/house/switch1/”*
- payload_on: “1”*
- payload_off: “0”*
- qos: 0*
- retain: true*
How is it different from the MQTT protocol publish and subscribe topic?