Announcement

Collapse
No announcement yet.

New to MQTT...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    New to MQTT...

    I did a deep drive into the MQTT world yesterday (about 9 hours) and I managed to get my Conbee II working with the latest zigbee2mqtt on my Debian 9 box AND got mcsMQTT talking to it (from Debian 10 box hosting HS4). Most of my time was spent learning the intricacies of it all (and reading 358 pages of documentation!). I managed to get a Sonoff BASICZBR3 working as well as two AduroSmart Eria CT bulbs...well, mostly. I have On/Off/Dim but no color tuning controls yet. I fought with the 2nd bulb as it would not give me dim controls - I had to manually add that. I found the option to enable HomeAssistant (I think...in zigbee2mqtt?) and that seemed to make the discovery work better but still the 2nd bulb fails to auto create :brightness and neither give me color tuning, yet...

    BASICZBR3
    Click image for larger version

Name:	8770.PNG
Views:	729
Size:	142.7 KB
ID:	1392575
    1st and 2nd are not exactly the same and I'm not sure how to get CT controls...
    1st Eria 81812
    Click image for larger version

Name:	d9d6.PNG
Views:	463
Size:	35.0 KB
ID:	1392576
    2nd Eria 81812
    Click image for larger version

Name:	49bd.PNG
Views:	455
Size:	34.7 KB
ID:	1392577

    info 2020-06-10 01:44:54: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-06-10.01-44-54' filename: log.txt
    info 2020-06-10 01:44:54: Starting zigbee2mqtt version 1.13.1 (commit #2cb234c)
    info 2020-06-10 01:44:54: Starting zigbee-herdsman...
    info 2020-06-10 01:44:54: zigbee-herdsman started
    info 2020-06-10 01:44:55: Coordinator firmware version: '{"type":"ConBee2","meta":{"transportrev":0,"product":0,"m aj orrel":38,"minorrel":88,"maintrel":0,"revision":"0x26580700" }}'
    info 2020-06-10 01:44:55: Currently 3 devices are joined:
    info 2020-06-10 01:44:55: 0x00124b001e728770 (0x00124b001e728770): BASICZBR3 - SONOFF Zigbee smart switch (Router)
    info 2020-06-10 01:44:55: 0x00158d00019949bd (0x00158d00019949bd): ZLED-TUNE9 - Trust Smart tunable LED bulb (Router)
    info 2020-06-10 01:44:55: 0x00158d0001a6d9d6 (0x00158d0001a6d9d6): ZLED-TUNE9 - Trust Smart tunable LED bulb (Router)
    warn 2020-06-10 01:44:55: `permit_join` set to `true` in configuration.yaml.
    warn 2020-06-10 01:44:55: Allowing new devices to join.
    warn 2020-06-10 01:44:55: Set `permit_join` to `false` once you joined all devices.
    info 2020-06-10 01:44:55: Zigbee: allowing new devices to join.
    error 2020-06-10 01:44:55: Not connected to MQTT server!
    error 2020-06-10 01:44:55: Cannot send message: topic: 'zigbee2mqtt/0x00124b001e728770', payload: '{"state":"OFF","linkquality":131}
    error 2020-06-10 01:44:55: Not connected to MQTT server!
    error 2020-06-10 01:44:55: Cannot send message: topic: 'zigbee2mqtt/0x00124b001e728770', payload: '{"state":"OFF","linkquality":131}
    info 2020-06-10 01:44:55: Connecting to MQTT server at mqtt://localhost
    info 2020-06-10 01:44:55: Connected to MQTT server
    info 2020-06-10 01:44:55: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
    info 2020-06-10 01:44:55: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":131}'
    info 2020-06-10 01:44:55: MQTT publish: topic 'zigbee2mqtt/0x00158d00019949bd', payload '{"state":"ON","brightness":254}'
    info 2020-06-10 01:44:55: MQTT publish: topic 'zigbee2mqtt/0x00158d0001a6d9d6', payload '{"state":"ON","brightness":254}'

    info 2020-06-10 01:44:55: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.13.1","commit":"2cb234c","coordinator":{"ty pe ":"ConBee2","meta":{"transportrev":0,"product":0,"majorr el": 38,"minorrel":88,"maintrel":0,"revision":"0x26580700"}},"lo g _level":"info","permit_join":true}'


    info 2020-06-10 01:44:55: MQTT publish: topic 'homeassistant/switch/0x00124b001e728770/switch/config', payload '{"payload_off":"OFF","payload_on":"ON","value_template":" {{ value_json.state }}","command_topic":"zigbee2mqtt/0x00124b001e728770/set","state_topic":"zigbee2mqtt/0x00124b001e728770","json_attributes_topic":"zigbee2mqtt/0x00124b001e728770","name":"0x00124b001e728770_switch","uniq ue_id":"0x00124b001e728770_switch_zigbee2mqtt","device":{"id entifiers":["zigbee2mqtt_0x00124b001e728770"],"name":"0x00124b001e728770","sw_version":"Zigbee2mqtt 1.13.1","model":"Zigbee smart switch (BASICZBR3)","manufacturer":"SONOFF"},"availability_topic":" zigbee2mqtt/bridge/state"}'

    info 2020-06-10 01:44:55: MQTT publish: topic 'homeassistant/sensor/0x00124b001e728770/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_t em plate":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00124b001e728770","json_attributes_topic":"zigbee2mqtt/0x00124b001e728770","name":"0x00124b001e728770_linkquality", "unique_id":"0x00124b001e728770_linkquality_zigbee2mqtt" ,"de vice":{"identifiers":["zigbee2mqtt_0x00124b001e728770"],"name":"0x00124b001e728770","sw_version":"Zigbee2mqtt 1.13.1","model":"Zigbee smart switch (BASICZBR3)","manufacturer":"SONOFF"},"availability_topic":" zigbee2mqtt/bridge/state"}'


    info 2020-06-10 01:44:55: MQTT publish: topic 'homeassistant/light/0x00158d00019949bd/light/config', payload '{"brightness":true,"color_temp":true,"schema":"json","com ma nd_topic":"zigbee2mqtt/0x00158d00019949bd/set","brightness_scale":254,"state_topic":"zigbee2mqtt/0x00158d00019949bd","json_attributes_topic":"zigbee2mqtt/0x00158d00019949bd","name":"0x00158d00019949bd_light","uniqu e_id":"0x00158d00019949bd_light_zigbee2mqtt","device":{"iden tifiers":["zigbee2mqtt_0x00158d00019949bd"],"name":"0x00158d00019949bd","sw_version":"Zigbee2mqtt 1.13.1","model":"Smart tunable LED bulb (ZLED-TUNE9)","manufacturer":"Trust"},"availability_topic":"zigbee 2mqtt/bridge/state"}'

    info 2020-06-10 01:44:55: MQTT publish: topic 'homeassistant/sensor/0x00158d00019949bd/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_t em plate":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d00019949bd","json_attributes_topic":"zigbee2mqtt/0x00158d00019949bd","name":"0x00158d00019949bd_linkquality", "unique_id":"0x00158d00019949bd_linkquality_zigbee2mqtt" ,"de vice":{"identifiers":["zigbee2mqtt_0x00158d00019949bd"],"name":"0x00158d00019949bd","sw_version":"Zigbee2mqtt 1.13.1","model":"Smart tunable LED bulb (ZLED-TUNE9)","manufacturer":"Trust"},"availability_topic":"zigbee 2mqtt/bridge/state"}'


    info 2020-06-10 01:44:55: MQTT publish: topic 'homeassistant/light/0x00158d0001a6d9d6/light/config', payload '{"brightness":true,"color_temp":true,"schema":"json","com ma nd_topic":"zigbee2mqtt/0x00158d0001a6d9d6/set","brightness_scale":254,"state_topic":"zigbee2mqtt/0x00158d0001a6d9d6","json_attributes_topic":"zigbee2mqtt/0x00158d0001a6d9d6","name":"0x00158d0001a6d9d6_light","uniqu e_id":"0x00158d0001a6d9d6_light_zigbee2mqtt","device":{"iden tifiers":["zigbee2mqtt_0x00158d0001a6d9d6"],"name":"0x00158d0001a6d9d6","sw_version":"Zigbee2mqtt 1.13.1","model":"Smart tunable LED bulb (ZLED-TUNE9)","manufacturer":"Trust"},"availability_topic":"zigbee 2mqtt/bridge/state"}'

    info 2020-06-10 01:44:55: MQTT publish: topic 'homeassistant/sensor/0x00158d0001a6d9d6/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_t em plate":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d0001a6d9d6","json_attributes_topic":"zigbee2mqtt/0x00158d0001a6d9d6","name":"0x00158d0001a6d9d6_linkquality", "unique_id":"0x00158d0001a6d9d6_linkquality_zigbee2mqtt" ,"de vice":{"identifiers":["zigbee2mqtt_0x00158d0001a6d9d6"],"name":"0x00158d0001a6d9d6","sw_version":"Zigbee2mqtt 1.13.1","model":"Smart tunable LED bulb (ZLED-TUNE9)","manufacturer":"Trust"},"availability_topic":"zigbee 2mqtt/bridge/state"}'


    info 2020-06-10 01:44:55: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":131}'
    info 2020-06-10 01:46:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":131}'
    info 2020-06-10 01:51:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":131}'
    info 2020-06-10 01:56:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":131}'
    info 2020-06-10 02:01:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":131}'
    info 2020-06-10 02:02:16: MQTT publish: topic 'zigbee2mqtt/0x00158d00019949bd', payload '{"state":"OFF","brightness":254}'
    info 2020-06-10 02:02:19: MQTT publish: topic 'zigbee2mqtt/0x00158d0001a6d9d6', payload '{"state":"OFF","brightness":254}'
    info 2020-06-10 02:02:22: MQTT publish: topic 'zigbee2mqtt/0x00158d00019949bd', payload '{"state":"ON","brightness":254}'
    info 2020-06-10 02:02:24: MQTT publish: topic 'zigbee2mqtt/0x00158d0001a6d9d6', payload '{"state":"ON","brightness":254}'
    info 2020-06-10 02:06:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":132}'
    info 2020-06-10 02:11:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":132}'
    info 2020-06-10 02:16:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":132}'
    info 2020-06-10 02:21:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":0}'
    info 2020-06-10 02:26:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":132}'
    info 2020-06-10 02:31:40: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":132}'
    root@debian:/opt/zigbee2mqtt/data/log/2020-06-10.01-44-54#
    HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
    Plugins: Z-Wave (via Nortek USB stick

    Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
    Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
    Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
    Insteon: 2413S Dual Band PLM
    Zigbee: zzh! CC2652R Rev A
    Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

    #2
    Do you have to flash the conbee with a custom fw for zigbee2mqtt?

    edit : ok this somewhat answered the question https://github.com/Koenkk/zigbee-herdsman/issues/72

    Comment


      #3
      Originally posted by MattL0 View Post
      Do you have to flash the conbee with a custom fw for zigbee2mqtt?
      No, it worked as is...
      HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
      Plugins: Z-Wave (via Nortek USB stick

      Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
      Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
      Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
      Insteon: 2413S Dual Band PLM
      Zigbee: zzh! CC2652R Rev A
      Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

      Comment


        #4
        From above I see the following disclosure by the CT bulb as to what it supports. I highlighted in red the items of special significance. I would expect mcsMQTT to create HS devices to control state, brightnesss, color_temp and show availability. Since the color_temp devices was not showing in your screen shot it appears that mcsMQTT already observed zigbee2mqtt/0x00158d00019949bd before zigbee2mqtt had homeassistant enabled. To remedy this obsolete this topic and then cycle power on the bulb so the homeassistant message will be delivered again. The easy way to obsolete the topic is from General tab, Inbound Management, Obsolete textbox with zigbee2mqtt/0x00158d00019949bd/# entered


        [code]
        info 2020-06-10 01:44:55: MQTT publish: topic 'homeassistant/light/0x00158d00019949bd/light/config',
        payload '{
        "brightness":true,
        "color_temp":true,
        "schema":"json",
        "command_topic":"zigbee2mqtt/0x00158d00019949bd/set",
        "brightness_scale":254,
        "state_topic":"zigbee2mqtt/0x00158d00019949bd",
        "json_attributes_topic":"zigbee2mqtt/0x00158d00019949bd",
        "name":"0x00158d00019949bd_light",
        "unique_id":"0x00158d00019949bd_light_zigbee2mqtt",
        "device":{"identifiers":["zigbee2mqtt_0x00158d00019949bd"],
        "name":"0x00158d00019949bd",
        "sw_version":"Zigbee2mqtt 1.13.1",
        "model":"Smart tunable LED bulb (ZLED-TUNE9)",
        "manufacturer":"Trust"},
        "availability_topic":"zigbee 2mqtt/bridge/state"}'0c0d]
        /code]

        The only status being reported in the following is state and brightness. I do not know what induced these messages to be sent, but the color_temp status is not being reported. I expect "color_temp":0 or "color_temp":1 for warm or cool white.

        Code:
        info 2020-06-10 02:02:16: MQTT publish: topic 'zigbee2mqtt/0x00158d00019949bd', payload '{"state":"OFF","brightness":254}'
        The Wiki for zigbee2mqtt shows this device reporting xy color. If this was the case then the homeassistant discovery payload above should have an xy key so mcsMQTT or any other client will know it has xy color capability. It does not need to be in homeassistant discovery, but it should be in the payload of the status message showing the current xy color. If it was in the status message, then mcsMQTT would see it and put the item in the Association tab and then once associated to HS device the control/status could be set to XY radio option.

        Could it be that the bulb needs to be configured to be a color bulb vs. a simple white bulb?

        When controlling the bulb from HS I think you need to define the expected payload template for each of the features since it is expecting a JSON payload. On the Edit tab the payload template will look something like {"brightness":$$VALUE"} for the brightness topic/device. Similar structure for each of the other HS devices associated with the bulb.

        Looks like you have picked a hard device to interface as your initial MQTT salvo.

        Comment


          #5
          Originally posted by Michael McSharry View Post

          The only status being reported in the following is state and brightness. I do not know what induced these messages to be sent, but the color_temp status is not being reported. I expect "color_temp":0 or "color_temp":1 for warm or cool white.

          The Wiki for zigbee2mqtt shows this device reporting xy color. If this was the case then the homeassistant discovery payload above should have an xy key so mcsMQTT or any other client will know it has xy color capability. It does not need to be in homeassistant discovery, but it should be in the payload of the status message showing the current xy color. If it was in the status message, then mcsMQTT would see it and put the item in the Association tab and then once associated to HS device the control/status could be set to XY radio option.

          Could it be that the bulb needs to be configured to be a color bulb vs. a simple white bulb?
          Perhaps. The bulb color_temp is white adjustable from 2700K to 6000K.
          I haven't tried your suggestion yet of obsoleting the topic...
          HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
          Plugins: Z-Wave (via Nortek USB stick

          Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
          Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
          Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
          Insteon: 2413S Dual Band PLM
          Zigbee: zzh! CC2652R Rev A
          Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

          Comment


            #6
            So, I did General tab, Inbound Management, Obsolete textbox for both bulbs, power cycled the bulbs but no new messages were delivered.
            I had to restart zigbee2mqtt service which generated:

            Code:
            info 2020-06-10 17:56:03: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-06-10.17-56-03' filename: log.txt
            info 2020-06-10 17:56:04: Starting zigbee2mqtt version 1.13.1 (commit #2cb234c)
            info 2020-06-10 17:56:04: Starting zigbee-herdsman...
            info 2020-06-10 17:56:04: zigbee-herdsman started
            info 2020-06-10 17:56:04: Coordinator firmware version: '{"type":"ConBee2","meta":{"transportrev":0,"product":0,"maj orrel":38,"minorrel":88,"maintrel":0,"revision":"0x26580700" }}'
            info 2020-06-10 17:56:04: Currently 3 devices are joined:
            info 2020-06-10 17:56:04: 0x00124b001e728770 (0x00124b001e728770): BASICZBR3 - SONOFF Zigbee smart switch (Router)
            info 2020-06-10 17:56:04: 0x00158d00019949bd (0x00158d00019949bd): ZLED-TUNE9 - Trust Smart tunable LED bulb (Router)
            info 2020-06-10 17:56:04: 0x00158d0001a6d9d6 (0x00158d0001a6d9d6): ZLED-TUNE9 - Trust Smart tunable LED bulb (Router)
            warn 2020-06-10 17:56:04: `permit_join` set to `true` in configuration.yaml.
            warn 2020-06-10 17:56:04: Allowing new devices to join.
            warn 2020-06-10 17:56:04: Set `permit_join` to `false` once you joined all devices.
            info 2020-06-10 17:56:04: Zigbee: allowing new devices to join.
            info 2020-06-10 17:56:05: Connecting to MQTT server at mqtt://localhost
            info 2020-06-10 17:56:05: Connected to MQTT server
            info 2020-06-10 17:56:05: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
            info 2020-06-10 17:56:05: MQTT publish: topic 'zigbee2mqtt/0x00124b001e728770', payload '{"state":"OFF","linkquality":149}'
            info 2020-06-10 17:56:05: MQTT publish: [B]topic 'zigbee2mqtt/0x00158d00019949bd', payload '{"state":"OFF","[COLOR=#ff0000]brightness[/COLOR]":254}'[/B]
            info 2020-06-10 17:56:05: MQTT publish: [B]topic 'zigbee2mqtt/0x00158d0001a6d9d6', payload '{"state":"OFF","[COLOR=#ff0000]brightness[/COLOR]":254}'[/B]
            
            info 2020-06-10 17:56:05: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.13.1","commit":"2cb234c","coordinator":{"type ":"ConBee2","meta":{"transportrev":0,"
            product":0,"majorrel":38,"minorrel":88,"maintrel":0,"revisio n":"0x26580700"}},"log_level":"info","permit_join":true}'
            
            info 2020-06-10 17:56:05: MQTT publish: topic 'homeassistant/switch/0x00124b001e728770/switch/config', payload '{"payload_off":"OFF","payload_on":"ON","value_template":" {{ value_jso
            n.state }}","command_topic":"zigbee2mqtt/0x00124b001e728770/set","state_topic":"zigbee2mqtt/0x00124b001e728770","json_attributes_topic":"zigbee2mqtt/0x00124b001e728770","name":"0x001
            24b001e728770_switch","unique_id":"0x00124b001e728770_switch _zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00124b001e728770"],"name":"0x00124b001e728770","sw_version":"Zigbee2
            mqtt 1.13.1","model":"Zigbee smart switch (BASICZBR3)","manufacturer":"SONOFF"},"availability_topic":" zigbee2mqtt/bridge/state"}'
            
            info 2020-06-10 17:56:05: MQTT publish: topic 'homeassistant/sensor/0x00124b001e728770/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_tem plate
            ":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00124b001e728770","json_attributes_topic":"zigbee2mqtt/0x00124b001e728770","name":"0x00124b001e728770_linkquality", "uniq
            ue_id":"0x00124b001e728770_linkquality_zigbee2mqtt","device" :{"identifiers":["zigbee2mqtt_0x00124b001e728770"],"name":"0x00124b001e728770","sw_version":"Zigbee2mqtt 1.13.1","model":"
            Zigbee smart switch (BASICZBR3)","manufacturer":"SONOFF"},"availability_topic":" zigbee2mqtt/bridge/state"}'
            
            info 2020-06-10 17:56:05: MQTT publish: topic 'homeassistant/light/0x00158d00019949bd/light/config', payload '{"brightness":true,"color_temp":true,"schema":"json","comma nd_topic":"z
            igbee2mqtt/0x00158d00019949bd/set","brightness_scale":254,"state_topic":"zigbee2mqtt/0x00158d00019949bd","json_attributes_topic":"zigbee2mqtt/0x00158d00019949bd","name":"0x00158d0001
            9949bd_light","unique_id":"0x00158d00019949bd_light_zigbee2m qtt","device":{"identifiers":["zigbee2mqtt_0x00158d00019949bd"],"name":"0x00158d00019949bd","sw_version":"Zigbee2mqtt 1.13
            .1","model":"Smart tunable LED bulb (ZLED-TUNE9)","manufacturer":"Trust"},"availability_topic":"zigbee 2mqtt/bridge/state"}'
            
            info 2020-06-10 17:56:05: MQTT publish: topic 'homeassistant/sensor/0x00158d00019949bd/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_tem plate
            ":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d00019949bd","json_attributes_topic":"zigbee2mqtt/0x00158d00019949bd","name":"0x00158d00019949bd_linkquality", "uniq
            ue_id":"0x00158d00019949bd_linkquality_zigbee2mqtt","device" :{"identifiers":["zigbee2mqtt_0x00158d00019949bd"],"name":"0x00158d00019949bd","sw_version":"Zigbee2mqtt 1.13.1","model":"
            Smart tunable LED bulb (ZLED-TUNE9)","manufacturer":"Trust"},"availability_topic":"zigbee 2mqtt/bridge/state"}'
            
            info 2020-06-10 17:56:05: MQTT publish: topic 'homeassistant/light/0x00158d0001a6d9d6/light/config', payload '{"brightness":true,"color_temp":true,"schema":"json","comma nd_topic":"z
            igbee2mqtt/0x00158d0001a6d9d6/set","brightness_scale":254,"state_topic":"zigbee2mqtt/0x00158d0001a6d9d6","json_attributes_topic":"zigbee2mqtt/0x00158d0001a6d9d6","name":"0x00158d0001
            a6d9d6_light","unique_id":"0x00158d0001a6d9d6_light_zigbee2m qtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001a6d9d6"],"name":"0x00158d0001a6d9d6","sw_version":"Zigbee2mqtt 1.13
            .1","model":"Smart tunable LED bulb (ZLED-TUNE9)","manufacturer":"Trust"},"availability_topic":"zigbee 2mqtt/bridge/state"}'
            
            info 2020-06-10 17:56:05: MQTT publish: topic 'homeassistant/sensor/0x00158d0001a6d9d6/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_tem plate
            ":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d0001a6d9d6","json_attributes_topic":"zigbee2mqtt/0x00158d0001a6d9d6","name":"0x00158d0001a6d9d6_linkquality", "unique_id":"0x00158d0001a6d9d6_linkquality_zigbee2mqtt","de vice":{"identifiers":["zigbee2mqtt_0x00158d0001a6d9d6"],"name":"0x00158d0001a6d9d6","sw_version":"Zigbee2mqtt 1.13.1","model":"Smart tunable LED bulb (ZLED-TUNE9)","manufacturer":"Trust"},"availability_topic":"zigbee 2mqtt/bridge/state"}'
            and the topics were recreated:

            Click image for larger version  Name:	Capture.PNG Views:	0 Size:	679.9 KB ID:	1392744
            If it was in the status message, then mcsMQTT would see it and put the item in the Association tab and then once associated to HS device the control/status could be set to XY radio option.
            That appears to be the case.

            Additionally, the bulbs were not responding to commands from HS4 once I did the above, even after power cycling the bulbs which again, does not generate messages. I rebooted Deb9 hosting zigbee2mqtt and now they're working.

            Could it be that the bulb needs to be configured to be a color bulb vs. a simple white bulb?
            How does one go about that??
            HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
            Plugins: Z-Wave (via Nortek USB stick

            Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
            Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
            Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
            Insteon: 2413S Dual Band PLM
            Zigbee: zzh! CC2652R Rev A
            Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

            Comment


              #7
              Looking at github...
              Code:
              const generic = {
              light_onoff_brightness: {
              supports: 'on/off, brightness',
              fromZigbee: [fz.on_off, fz.brightness, fz.ignore_basic_report],
              toZigbee: [
              tz.light_onoff_brightness, tz.ignore_transition, tz.ignore_rate, tz.light_alert,
              tz.light_brightness_move,
              ],
              },
              light_onoff_brightness_colortemp: {
              [B][COLOR=#0000ff]supports: 'on/off, brightness, color temperature',[/COLOR][/B]
              fromZigbee: [fz.color_colortemp, fz.on_off, fz.brightness, fz.ignore_basic_report],
              toZigbee: [
              tz.light_onoff_brightness, tz.light_colortemp, tz.ignore_transition, tz.ignore_rate, tz.light_alert,
              tz.light_brightness_move, tz.light_colortemp_move,
              ],
              },
              light_onoff_brightness_colorxy: {
              supports: 'on/off, brightness, color xy',
              fromZigbee: [fz.color_colortemp, fz.on_off, fz.brightness, fz.ignore_basic_report],
              toZigbee: [
              tz.light_onoff_brightness, tz.light_color, tz.ignore_transition, tz.ignore_rate, tz.light_alert,
              tz.light_brightness_move, tz.light_colortemp_move,
              ],
              },
              No idea what I'm doing yet! LOL...
              HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
              Plugins: Z-Wave (via Nortek USB stick

              Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
              Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
              Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
              Insteon: 2413S Dual Band PLM
              Zigbee: zzh! CC2652R Rev A
              Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

              Comment


                #8
                I 'paired' my OSRAM Lightify Color Tunable A19 bulb into the mix and it looks worse......
                Click image for larger version  Name:	Capture.PNG Views:	0 Size:	670.3 KB ID:	1392771
                HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                Plugins: Z-Wave (via Nortek USB stick

                Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                Insteon: 2413S Dual Band PLM
                Zigbee: zzh! CC2652R Rev A
                Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                Comment


                  #9
                  What to do with this?

                  info 2020-06-10 19:28:10: Device '0x8418260000094aef' joined

                  info 2020-06-10 19:28:10: Starting interview of '0x8418260000094aef'

                  info 2020-06-10 19:28:10: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":{"friendly_name":"0x 84 18260000094aef"}}'

                  info 2020-06-10 19:28:10: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_started","meta":{" fr iendly_name":"0x8418260000094aef"}}'

                  info 2020-06-10 19:28:11: MQTT publish: topic 'homeassistant/light/0x8418260000094aef/light/config', payload '{"brightness":true,"color_temp":true,"schema":"json","com ma nd_topic":"zigbee2mqtt/0x8418260000094aef/set","brightness_scale":254,"state_topic":"zigbee2mqtt/0x8418260000094aef","json_attributes_topic":"zigbee2mqtt/0x8418260000094aef","name":"0x8418260000094aef_light","uniqu e_id":"0x8418260000094aef_light_zigbee2mqtt","device":{"iden tifiers":["zigbee2mqtt_0x8418260000094aef"],"name":"0x8418260000094aef","sw_version":"Zigbee2mqtt 1.13.1","model":"LIGHTIFY LED A19 tunable white / Classic A60 TW (AA70155)","manufacturer":"OSRAM"},"availability_topic":"zig bee2mqtt/bridge/state"}'

                  info 2020-06-10 19:28:11: MQTT publish: topic 'homeassistant/sensor/0x8418260000094aef/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_t em plate":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x8418260000094aef","json_attributes_topic":"zigbee2mqtt/0x8418260000094aef","name":"0x8418260000094aef_linkquality", "unique_id":"0x8418260000094aef_linkquality_zigbee2mqtt" ,"de vice":{"identifiers":["zigbee2mqtt_0x8418260000094aef"],"name":"0x8418260000094aef","sw_version":"Zigbee2mqtt 1.13.1","model":"LIGHTIFY LED A19 tunable white / Classic A60 TW (AA70155)","manufacturer":"OSRAM"},"availability_topic":"zig bee2mqtt/bridge/state"}'

                  info 2020-06-10 19:28:11: MQTT publish: topic 'homeassistant/binary_sensor/0x8418260000094aef/update_available/config', payload '{"payload_on":true,"payload_off":false,"value_template":" {{ value_json.update_available}}","state_topic":"zigbee2mqtt/0x8418260000094aef","json_attributes_topic":"zigbee2mqtt/0x8418260000094aef","name":"0x8418260000094aef_update_availa ble","unique_id":"0x8418260000094aef_update_available_zigbe e 2mqtt","device":{"identifiers":["zigbee2mqtt_0x8418260000094aef"],"name":"0x8418260000094aef","sw_version":"Zigbee2mqtt 1.13.1","model":"LIGHTIFY LED A19 tunable white / Classic A60 TW (AA70155)","manufacturer":"OSRAM"},"availability_topic":"zig bee2mqtt/bridge/state"}'

                  info 2020-06-10 19:28:13: Successfully interviewed '0x8418260000094aef', device has successfully been paired

                  info 2020-06-10 19:28:13: Device '0x8418260000094aef' is supported, identified as: OSRAM LIGHTIFY LED A19 tunable white / Classic A60 TW (AA70155)

                  info 2020-06-10 19:28:13: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_successful","meta" :{ "friendly_name":"0x8418260000094aef","model":"AA70155"," vend or":"OSRAM","description":"LIGHTIFY LED A19 tunable white / Classic A60 TW","supported":true}}'

                  info 2020-06-10 19:28:17: MQTT publish: topic 'zigbee2mqtt/0x8418260000094aef', payload '{"update_available":true}'

                  info 2020-06-10 19:28:17: Update available for '0x8418260000094aef'

                  info 2020-06-10 19:28:17: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"ota_update","message":"Update available for '0x8418260000094aef'","meta":{"status":"available","device": "0x8418260000094aef"}}'
                  HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                  Plugins: Z-Wave (via Nortek USB stick

                  Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                  Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                  Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                  Insteon: 2413S Dual Band PLM
                  Zigbee: zzh! CC2652R Rev A
                  Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                  Comment


                    #10
                    When I googled the bulb I did not see anything needed for configuration. I have a Sengled bulb interfaced with zigbee2mqtt. For the command the following is used
                    Code:
                    Topic zigbee2mqtt/0xb0ce18140001de1b/set
                    Payload {"state":"ON"","brightness":128 ,"color":{"r":200,"g":200,"b":30}}
                    I would expect if it had color_temp capability then something like this would cover it

                    Code:
                    Topic zigbee2mqtt/0x00158d00019949bd/set
                    Payload {"state":"ON"","brightness":128 ,"color_temp":1,"color":{"r":200,"g":200,"b":30}}
                    If you were to publish the second of these then I expect mcsMQTT to create the color_temp device. You should also be able to get the color control by selecting XY for the color type on the edit tab for the color. Since XY was not show in homeassistant discovery then you likley will need to manually associate ("A" checkbox) on Association tab.

                    If you are able to publish as I showed above and control the light color and not able to get the color configured in HS then I can force the color as part of discovery even though XY was not in the discovery list.

                    I do not know how to do a firmware update. I suspect it is from the company's App.

                    Comment


                      #11
                      Originally posted by Michael McSharry View Post
                      When I googled the bulb I did not see anything needed for configuration. I have a Sengled bulb interfaced with zigbee2mqtt. For the command the following is used
                      Code:
                      Topic zigbee2mqtt/0xb0ce18140001de1b/set
                      Payload {"state":"ON"","brightness":128 ,"color":{"r":200,"g":200,"b":30}}
                      I would expect if it had color_temp capability then something like this would cover it

                      Code:
                      Topic zigbee2mqtt/0x00158d00019949bd/set
                      Payload {"state":"ON"","brightness":128 ,"color_temp":1,"color":{"r":200,"g":200,"b":30}}
                      If you were to publish the second of these then I expect mcsMQTT to create the color_temp device. You should also be able to get the color control by selecting XY for the color type on the edit tab for the color. Since XY was not show in homeassistant discovery then you likley will need to manually associate ("A" checkbox) on Association tab.

                      If you are able to publish as I showed above and control the light color and not able to get the color configured in HS then I can force the color as part of discovery even though XY was not in the discovery list.

                      I do not know how to do a firmware update. I suspect it is from the company's App.
                      Hmm...
                      For these bulbs since there is no rgb color capability, would I not want:
                      Code:
                      Topic zigbee2mqtt/0x00158d00019949bd/set
                      Payload {"state":"ON"","brightness":128 ,"color_temp":1}
                      These are AduroSmart 81812, similar to https://www.zigbee2mqtt.io/devices/81809.html but no rgb.
                      Is xy: true for rgb?
                      HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                      Plugins: Z-Wave (via Nortek USB stick

                      Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                      Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                      Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                      Insteon: 2413S Dual Band PLM
                      Zigbee: zzh! CC2652R Rev A
                      Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                      Comment


                        #12
                        Is xy: true for rgb?
                        yes

                        The Payload looks correct to set all three parameters. If you only want to change the color temp then you should not need state or brightness keys. Color temp values are 0 and 1.

                        Comment


                          #13
                          Originally posted by Michael McSharry View Post
                          The Payload looks correct to set all three parameters. If you only want to change the color temp then you should not need state or brightness keys. Color temp values are 0 and 1.
                          I now have a new HS slider device for color temp but I don't think the payload is correct. I think I need to send a range value of something but not just 0 or 1, no?

                          Here is the AduroSmart Eria 81809 description "ERIA colors and white shades smart light bulb A19 (on/off, brightness, color temperature, color xy)"
                          My 81812 would need to be added to zigbee2mqtt.io as something like "ERIA white shades smart light bulb A19 (on/off, brightness, color temperature)
                          Maybe I need to travel that road first and get it recognized properly by zigbee2mqtt. If it thinks it is just on/off/dim then I don't think mcsMQTT can control it's color temperature?
                          HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                          Plugins: Z-Wave (via Nortek USB stick

                          Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                          Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                          Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                          Insteon: 2413S Dual Band PLM
                          Zigbee: zzh! CC2652R Rev A
                          Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                          Comment


                            #14
                            You have a couple options. It seems you have selected the Slider as the Control/Status UI on the mcsMQTT Edit tab. Sliders are normally 0 to 100% DeviceValue. If you want 3500 to 6700, for example, then use HS Device Management to change the range of values for the slider and for the graphics from the 0 and 100 to 3500 and 6700.

                            Since there may be some mcsMQTT internal assumptions made about sliders, a more straightforward method is to select Number for the Control/Status UI. This will present a text box where a number can be entered from HS. This way you have direct control of what is sent in the payload. Once you have this working then you can go back and fiddle with the slider.

                            Your payload template on Edit tab would likely be {"color_temp":$$VALUE:} so the data gets formatted as JSON with key color_temp and the magnitude coming from HS DeviceValue. This applies to both slider and number UI.

                            Comment


                              #15
                              I added a new section to /opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/devices.js

                              Click image for larger version

Name:	zigbee-herdsman-converters_devices_js.PNG
Views:	411
Size:	45.5 KB
ID:	1392884
                              HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                              Plugins: Z-Wave (via Nortek USB stick

                              Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                              Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                              Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                              Insteon: 2413S Dual Band PLM
                              Zigbee: zzh! CC2652R Rev A
                              Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                              Comment

                              Working...
                              X