zigbee2mqtt & zigbee USB for Hue bulbs

Posted on
Fri Jul 03, 2020 8:41 am
FlyingDiver online
User avatar
Posts: 4307
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: zigbee2mqtt & zigbee USB for Hue bulbs

siclark wrote:
I am finally getting back to these. Looking at the Aqara wireless switches to control the light bulbs. They work great for on/off, and dimming zwave bulbs, but the MQTT color device which is the bulb doesnt appear to support Brighten/Dim By or Start Brightening/Dimming. which I would love be able to use with the hold / release commands from the Aqara wireless switches.

Is that an easy change?


Not sure. I'll take a look.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jul 03, 2020 9:18 am
FlyingDiver online
User avatar
Posts: 4307
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: zigbee2mqtt & zigbee USB for Hue bulbs

Try 0.3.2: https://github.com/FlyingDiver/Indigo-S ... /tag/0.3.2

This has both the brightness/onOffState change requested, and also implements BrightenBy and DimBy. The start/stop commands would require additional templates for the MQTT commands and would be a lot more work.

0.3.X is still pre-release. Let me know if these are stable enough to be released on the Plugin Store.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jul 03, 2020 10:07 am
siclark offline
Posts: 1333
Joined: Jun 13, 2017
Location: UK

Re: zigbee2mqtt & zigbee USB for Hue bulbs

Thanks will do.

Brighten by would normally be fine but the hold doesn’t seem to change anything in the mqtt message, ie no time or counter so nothing for the indigo trigger to react to so holding would just trigger once rather than multiple times.

I need to spend a a little more time on these switches.

I can use double click to activate brighten by set amount and that will work. Its much better than what I have today it had with the hue hub

Posted on
Fri Jul 03, 2020 10:13 am
FlyingDiver online
User avatar
Posts: 4307
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: zigbee2mqtt & zigbee USB for Hue bulbs

siclark wrote:
Brighten by would normally be fine but the hold doesn’t seem to change anything in the mqtt message, ie no time or counter so nothing for the indigo trigger to react to so holding would just trigger once rather than multiple times.


So does it send a message when you start to hold (press down) and another when you release? If so, there's probably something you could do with repeating timers and a stop timer on the release.
Or maybe a pester device.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jul 03, 2020 10:25 am
siclark offline
Posts: 1333
Joined: Jun 13, 2017
Location: UK

Re: zigbee2mqtt & zigbee USB for Hue bulbs

Exactly. Yes I was thinking same. Just a bit more complicated.

Posted on
Fri Jul 03, 2020 12:31 pm
siclark offline
Posts: 1333
Joined: Jun 13, 2017
Location: UK

Re: zigbee2mqtt & zigbee USB for Hue bulbs

Hi,

I am getting this error now

Code: Select all
   MQTT Shims Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 107, in runConcurrentThread
  File "plugin.py", line 131, in processMessages
  File "plugin.py", line 453, in update
NameError: global name 'state_list' is not defined

   MQTT Shims Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Fri Jul 03, 2020 12:52 pm
FlyingDiver online
User avatar
Posts: 4307
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: zigbee2mqtt & zigbee USB for Hue bulbs


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Jul 03, 2020 12:58 pm
siclark offline
Posts: 1333
Joined: Jun 13, 2017
Location: UK

Re: zigbee2mqtt & zigbee USB for Hue bulbs

Thbanks..

On and off work without error now, but get this on Brighten by

Code: Select all
   MQTT Shims Error                Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 904, in actionControlDevice
NameError: global name 'dev' is not defined

Posted on
Fri Jul 03, 2020 1:30 pm
FlyingDiver online
User avatar
Posts: 4307
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: zigbee2mqtt & zigbee USB for Hue bulbs


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jul 09, 2020 5:01 am
siclark offline
Posts: 1333
Joined: Jun 13, 2017
Location: UK

Re: zigbee2mqtt & zigbee USB for Hue bulbs

Hi,

Had some issues with the Hue Remote and its taken me a few days to get this working again, so not been playing with the latest version.

Brighten by and dim by are working well now.

I have turned off my hue hub and deleted all the old Hue devices from Indigo as well as my previous devices that used the node-red solution.

I am sure there will be a few more tweaks that could be made but I am happy with how this is working now.

Thanks for your work on this, and its great we can have zigbee devices of all sorts working with Indigo without an expensive hub.

Simon

Who is online

Users browsing this forum: No registered users and 1 guest