Hubitat Plugin Beta

siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Hubitat Plugin Beta

Post by siclark »

Hi Jon,
I have now migrated everything over to the Hubitat including Sonoff and Aqara temperature sensors. The aqara are actually working well on the Hubitat.

I have asked to set up humidity as a custom state on the Primary device, but the only custom state I see is presence. Is this supposed to work? I could do secondary devices, but prefer to not clutter the screen.

Thanks
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Hubitat Plugin Beta

Post by autolog »

siclark wrote:... I have asked to set up humidity as a custom state on the Primary device, but the only custom state I see is presence. Is this supposed to work? I could do secondary devices, but prefer to not clutter the screen.
Yes, it is supposed to work and is most likely a bug.

It has probably happened because I did originally support showing humidity (along with temperature) in the UI at the same time. This style is now deprecated and so I backed out that code but must have missed something while doing it. I will run a test and try and figure out what has gone wrong. In the meanwhile, you can change it to a secondary devices and change it back when I figure out the fix. :)
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Hubitat Plugin Beta

Post by siclark »

Thanks. Will do for now.
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Hubitat Plugin Beta

Post by autolog »

Hi Simon,

A new version of the plugin is available as pre-release on Github: Fix Humidity as primary Device additional state

As I suspected, there was a bit of missing code that I should have included when I did the deprecated humidity change. :wink:

When you edit the device to flip humidity back from a secondary device to an additional state on the primary device, you will get an orphan secondary device that you have to delete manually.

If you edit this orphaned device, you will get a dialogue something like this:
Hubitat orphaned secondary device
Hubitat orphaned secondary device
hubitat_orphaned_secondary_device.png (264.31 KiB) Viewed 3618 times
You will see that the device name is appended with e.g. [UNGROUPED @2021-09-13 13:09:53]
Looking at it now, the displayed text, when you try to edit its device settings tells you to delete the device. The message should maybe say "You are not allowed to directly create or edit this secondary device ...". I will put that on the todo list.

I have tested it and it seems to work. Let me know if it is OK for you. :)
User avatar
racarter
Posts: 562
Joined: Sat Jun 18, 2016 4:23 am
Location: North Yorkshire, UK
Contact:

Re: Hubitat Plugin Beta

Post by racarter »

Thanks for this great plugin!

Please could we have an illuminance sensor as a primary? I have a sensor which measures nothing else, but I can't create a device for it.

Thanks :)
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Hubitat Plugin Beta

Post by autolog »

racarter wrote:Please could we have an illuminance sensor as a primary? I have a sensor which measures nothing else, but I can't create a device for it.
New version 0.5.9 is available in the Indigo Plugin Store.

It now supports both Humidity and Illuminance as a primary Indigo device. :)
User avatar
racarter
Posts: 562
Joined: Sat Jun 18, 2016 4:23 am
Location: North Yorkshire, UK
Contact:

Re: Hubitat Plugin Beta

Post by racarter »

Lightning service! :D
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Hubitat Plugin Beta

Post by siclark »

Hi Jon

Next time you are in the code, I was wondering if we could have an action to turn on and off flashing of bulbs. It looks a handy feature to use for getting people’s attention!

Cheers.
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Hubitat Plugin Beta

Post by autolog »

siclark wrote:Next time you are in the code, I was wondering if we could have an action to turn on and off flashing of bulbs. It looks a handy feature to use for getting people’s attention! .
So you are looking for specific flashing code for lamps. I am not sure that should be a Hubitat Plugin function. I know that some Hubitat devices have a device function to flash lamp devicess but I am not sure that is exposed via the MQTT interface. :?:

When I have a bit more time, I might investigate it. In the meanwhile if you could provide a bit more detail on how you think it could work, that would be useful. :)
User avatar
cesarvog
Posts: 155
Joined: Sat Aug 13, 2016 9:54 am
Location: Brazil

Re: Hubitat Plugin Beta

Post by cesarvog »

Many thanks @autolog for this excellent addition to the Indigo Plugins.

It took me a while to get it working, but once I got the gist, it has been working flawlessly.
Now, if only I would be able to add my C-7 as secondary controller to my zwave mesh, then I would be the happiest camper... But that is another story!

Once again, thanks for this amazing plugin.
Best regards,
Cesar
siclark
Posts: 2356
Joined: Tue Jun 13, 2017 5:08 am
Location: UK

Re: Hubitat Plugin Beta

Post by siclark »

autolog wrote:
siclark wrote:Next time you are in the code, I was wondering if we could have an action to turn on and off flashing of bulbs. It looks a handy feature to use for getting people’s attention! .
So you are looking for specific flashing code for lamps. I am not sure that should be a Hubitat Plugin function. I know that some Hubitat devices have a device function to flash lamp devicess but I am not sure that is exposed via the MQTT interface. :?:

When I have a bit more time, I might investigate it. In the meanwhile if you could provide a bit more detail on how you think it could work, that would be useful. :)
Hi, yes it would be to turn on and off the hubitat functionality to flash a bulb. I think it only makes sense if, as you say, the functionality is exposed over MQTT. If it is not, I can ask that plugin owner.
CliveS
Posts: 864
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Re: Hubitat Plugin Beta

Post by CliveS »

siclark wrote: Hi, yes it would be to turn on and off the hubitat functionality to flash a bulb. I think it only makes sense if, as you say, the functionality is exposed over MQTT. If it is not, I can ask that plugin owner.
Hubitat just sends on and off to Indigo via MQTT, looked at the Hubitat driver but no idea on Zigbee or Groovy coding but I am sure a simple python script in Indigo that knows the delay between off and on and number of flashes required would be the answer.
CliveS

Indigo 2024.2.1 : macOS Sequoia 15.6.1 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD

The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Hubitat Plugin Beta

Post by autolog »

Hi Cesar,
cesarvog wrote:Many thanks @autolog for this excellent addition to the Indigo Plugins. ....
Thanks for the kind words, I am glad you are finding it useful. :D

I try and keep the plugin up-to-date and as I have a limited number of devices to test with, I welcome user feedback so that the plugin can be improved. :)
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Hubitat Plugin Beta

Post by autolog »

CliveS wrote:... but I am sure a simple python script in Indigo that knows the delay between off and on and number of flashes required would be the answer.
As this functionality (easy scripting) is already available in Indigo, I think this would be the way to go as well. :)
CliveS
Posts: 864
Joined: Sun Jan 10, 2016 5:31 am
Location: Medomsley, County Durham, UK

Re: Hubitat Plugin Beta

Post by CliveS »

autolog wrote: I try and keep the plugin up-to-date and as I have a limited number of devices to test with, I welcome user feedback so that the plugin can be improved. :)
And I have an increasing portfolio of Zigbee devices thanks to you, in fact I am replacing all my Neo contact sensors with Zigbee and now making all the light switches dimmable or switchable with no neutral Zigbee modules.

The only negative I have found for Zigbee is motion sensors, very basic compared to Z-Wave.
CliveS

Indigo 2024.2.1 : macOS Sequoia 15.6.1 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD

The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer
Post Reply

Return to “Hubitat”