mqtt: sensor: - unique_id: gas_heater_operating name: "Gas Heater Operating" state_topic: "viewroad-status/gasheater/operating" switch: - unique_id: gasheater_switch name: "Gas Heater" state_topic: "viewroad-status/gasheater/operating" command_topic: "viewroad-commands/gasheater/onoff" #availability: # - topic: "home/bedroom/switch1/available" payload_on: "ON" payload_off: "OFF" state_on: "ON" state_off: "OFF" optimistic: false qos: 0 retain: true # need this, or fire starts on HA reboot. Could fix in Node red too.