Argh! According to @ElectronMike I actually had “50291, 50292” working with RGB (no brightness), but must have messed something up in the past two weeks. I pushed a new version to the dev branch. Let me know if works. If RGB doesn’t work, I think I can at least get on/off working.
HPDA311CWB should always have worked, since that is the only model I have.
Ok RGBW works as it did before! Nice work @jaaem. If our up for taking on getting the OutLets to work, I’ll send over the debug info… They outlets are individually controllable (on/off) but they don’t show that way in UI at this moment.
From your DM, I see how to control/get the status of the outlets. I need to think about how to implement. The issue is we need to make each device into two separate “lights”, each setting/pulling status from a different field name. However, if either is on, they share a common “power” field. Hopefully I’ll get to it in a few days.
I did add this model to the if statement for the RGB mode…
It didn’t work out of the box, also I had to remove the spaces in the names in order to make it work
It would be great to add brightness and whites to integration, are you looking into that?
I’ll take a look on how this integration works / API calls when I have some more time
The API calls are pretty easy. If you turn on debug mode in the integration, it should be pretty easy to figure out what field to change (like how to set color temperature). It is the home assistant part that is hard. I haven’t found a good template for an RGB+W light. Also, it is hard to test without the device. Never made a light component before this.
To try to get brightness at least working, trying adding the model string to the if statement that activates brightness mode in the init function. It just might work. I’ll add your model number into the next release.
how do I get you the degug info this is all I am seeing in my logs currently
Logger: homeassistant.components.light
Source: custom_components/hubspace/light.py:62
Integration: Light (documentation, issues)
First occurred: 10:38:00 PM (1 occurrences)
Last logged: 10:38:00 PM
Error while setting up hubspace platform for light
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 249, in _async_setup_platform await asyncio.shield(task) File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) File “/config/custom_components/hubspace/light.py”, line 62, in setup_platform _LOGGER.debug("Switch on Model " + model ) TypeError: can only concatenate str (not “NoneType”) to str
That error is happening too early in the process for the normal debug information. Are you using the latest version? Make sure you are using version 1.1 … This error tends to happen if your light’s friendlyname has either a space or is the same as a “group” of lights (like bedroom, office, etc) .I thought 1.1 fixed the group of lights issue, but maybe not. Try renaming the light in the app something unique, like “abc123” If that doesn’t work, you can get a little more debug information by setting this in your configuration.yaml (not in hubspace section, but in the main section). You may already have a logger section, so make sure it has the hubspace line:
Thanks for creating this! Should I install the main “jdeath” verseion on github vs a fork? That’s what is being actively maintained?
Once I get a chance to install it and test it, I’ll report back with any models that don’t work and see if I can get you the info to add them. I have 2 different outdoor on/off plugs, (1 outlet and 2 outlet) 1 outlet indoor plugs, and two different lengths of RGBW tape.
Just the Main branch. GitHub - jdeath/Hubspace-Homeassistant
Jdeath has been amazing. we have found some limitations but he got my outlet working, switches and RGBW recessed.
Thank you so much. This has worked for a number of devices. I already owe you a coffee, but if you ever have time to figure out the transformer, I’ll owe you a whole pot of it.
if you turn on debug: true in the configuration and PM me the sensor attributes for the transformer, I can try to figure it out. Now that I got the outlets working, I assume the transformer works in a similar way.
Thank you all for this exciting project. I am so close! I keep getting the following error:
2022-07-31 01:34:43 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hubspace which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-07-31 01:34:43 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-07-31 01:34:43 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration ecoplug which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-07-31 01:34:57 DEBUG (SyncWorker_4) [custom_components.hubspace.light] friendlyname ‘Fdl'
2022-07-31 01:34:57 DEBUG (SyncWorker_4) [custom_components.hubspace.hubspace] token xxxx
2022-07-31 01:34:57 DEBUG (SyncWorker_4) [custom_components.hubspace.hubspace] token yyyy
2022-07-31 01:34:58 ERROR (MainThread) [homeassistant.components.light] Error while setting up hubspace platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/hubspace/light.py", line 72, in setup_platform
_LOGGER.debug("Switch on Model " + model )
TypeError: can only concatenate str (not "NoneType") to str