Witaj, na początek – bardzo dziękuje za odpowiedź !
Niestety w menu z2m u mnie nie ma tego ustawienia
Publikacja pakietu w logach pojawia się błąd
No converter available for ‘power_on_behavior’ (“ON”)
W logaach mqtt mam poniże wpisy
Linia 96: 2024-01-02 15:12:56.512 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {‘availability’: [{‘topic’: ‘zigbee2mqtt/bridge/state’, ‘payload_not_available’: ‘offline’, ‘payload_available’: ‘online’}, {‘topic’: ‘zigbee2mqtt/Kran_test/availability’, ‘payload_not_available’: ‘offline’, ‘payload_available’: ‘online’}], ‘availability_mode’: ‘all’, ‘device’: {‘identifiers’: [‘zigbee2mqtt_0xa4c1384313eb921d’], ‘manufacturer’: ‘TuYa’, ‘model’: ‘Smart water/gas valve (ZN231392)’, ‘name’: ‘Kran_test’, ‘connections’: }, ‘enabled_by_default’: False, ‘entity_category’: <EntityCategory.DIAGNOSTIC: ‘diagnostic’>, ‘icon’: ‘mdi:signal’, ‘json_attributes_topic’: ‘zigbee2mqtt/Kran_test’, ‘name’: ‘Kran_test_linkquality’, ‘state_class’: <SensorStateClass.MEASUREMENT: ‘measurement’>, ‘state_topic’: ‘zigbee2mqtt/Kran_test’, ‘unique_id’: ‘0xa4c1384313eb921d_linkquality_zigbee2mqtt’, ‘unit_of_measurement’: ‘lqi’, ‘value_template’: Template<template=({{ value_json.linkquality }}) renders=0>, ‘encoding’: ‘utf-8’, ‘qos’: 0, ‘force_update’: False, ‘payload_available’: ‘online’, ‘payload_not_available’: ‘offline’}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes ‘_linkquality’
Linia 113: 2024-01-02 15:12:56.579 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT device name is equal to entity name in your config {'availability': [{'topic': 'zigbee2mqtt/bridge/state', 'payload_not_available': 'offline', 'payload_available': 'online'}, {'topic': 'zigbee2mqtt/Kran_test/availability', 'payload_not_available': 'offline', 'payload_available': 'online'}], 'availability_mode': 'all', 'command_topic': 'zigbee2mqtt/Kran_test/set', 'device': {'identifiers': ['zigbee2mqtt_0xa4c1384313eb921d'], 'manufacturer': 'TuYa', 'model': 'Smart water/gas valve (ZN231392)', 'name': 'Kran_test', 'connections': []}, 'json_attributes_topic': 'zigbee2mqtt/Kran_test', 'name': 'Kran_test', 'payload_off': 'OFF', 'payload_on': 'ON', 'state_topic': 'zigbee2mqtt/Kran_test', 'unique_id': '0xa4c1384313eb921d_switch_zigbee2mqtt', 'value_template': Template<template=({{ value_json.state }}) renders=0>, 'optimistic': False, 'retain': False, 'enabled_by_default': True, 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline', 'qos': 0}, this is not expected. Please correct your configuration. The entity name will be set to `null`
Linia 238: 2024-01-02 16:08:19.917 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on zigbee2mqtt/Kran_test (qos=0): b'{"linkquality":10,"state":"ON"}'
Linia 256: 2024-01-02 16:08:25.277 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on zigbee2mqtt/Kran_test (qos=0): b'{"linkquality":10,"state":"OFF"}'
Linia 266: 2024-01-02 16:09:21.422 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on zigbee2mqtt/Kran_test/set: '{"power_on_behavior":"ON"}', mid: 51, qos: 0