I have automation, that is calling service Switch: Turn on/off. The switch is mqtt switch and this is the definition:
- platform: mqtt
name: "myswitch"
state_topic: "hass/sonoff/tele/s20-id1/STATE"
state_off: "OFF"
state_on: "ON"
value_template: "{{ value_json.POWER }}"
command_topic: "hass/sonoff/cmnd/s20-id1/POWER"
payload_on: "1"
payload_off: "0"
availability_topic: "has/sonoff/tele/s20-id1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: false
broker is external:
mqtt:
broker: 192.168.4.2
port: 1883
username: pi
password: xxxxxx
when hass calling the service, I assume it publishes mqtt message, but what QOS is used and can it be modified?