all my buttons are exactly the same but the last one is not the same. I don’t know why and how to fix that
on configuration.yaml
mqtt: !include mqtt.yaml
on mqtt.yaml
switch:
- name: "Service bouton"
unique_id: nabaztag_ztk3o7_button
state_topic: "nabaztag/sensor/box-nabaztag/service_button/status"
command_topic: "nabaztag/switch/box-nabaztag/service_switch"
payload_on: "start_service_button"
payload_off: "stop_service_button"
state_on: "online"
state_off: "offline"
icon: "mdi:radiobox-marked"
qos: 0
retain: false
device:
identifiers:
- nabaztag_box_ztk3o7
- name: "Service Assistant"
unique_id: nabaztag_ztk3o7_vosk
state_topic: "nabaztag/sensor/box-nabaztag/service_vosk/status"
command_topic: "nabaztag/switch/box-nabaztag/service_switch"
payload_on: "start_service_vosk"
payload_off: "stop_service_vosk"
state_on: "online"
state_off: "offline"
icon: "mdi:rabbit-variant-outline"
qos: 0
retain: false
device:
identifiers:
- nabaztag_box_ztk3o7
- name: "Service AirPlay"
unique_id: nabaztag_ztk3o7_airplay
state_topic: "nabaztag/sensor/box-nabaztag/service_airplay/status"
command_topic: "nabaztag/switch/box-nabaztag/service_switch"
payload_on: "start_service_airplay"
payload_off: "stop_service_airplay"
state_on: "online"
state_off: "offline"
icon: "mdi:cast-variant"
qos: 0
retain: false
device:
identifiers:
- nabaztag_box_ztk3o7
- name: "Service MQTT"
unique_id: nabaztag_ztk3o7_mqtt
state_topic: "nabaztag/sensor/box-nabaztag/service_mqtt/status"
command_topic: "nabaztag/switch/box-nabaztag/service_switch"
payload_on: "start_service_mqtt"
payload_off: "stop_service_mqtt"
state_on: "online"
state_off: "offline"
icon: "mdi:access-point-network"
qos: 0
retain: false
device:
identifiers:
- nabaztag_box_ztk3o7
- name: "Service Mopidy"
unique_id: nabaztag_ztk3o7_mopidy
state_topic: "nabaztag/sensor/box-nabaztag/service_mopidy/status"
command_topic: "nabaztag/switch/box-nabaztag/service_switch"
payload_on: "start_service_mopidy"
payload_off: "stop_service_mopidy"
state_on: "online"
state_off: "offline"
icon: "mdi:music-note"
qos: 0
retain: false
device:
identifiers:
- nabaztag_box_ztk3o7