Giter VIP home page Giter VIP logo

vchlum / hue-lights Goto Github PK

View Code? Open in Web Editor NEW
183.0 6.0 14.0 1.7 MB

Gnome Shell extension for Philips Hue compatible lights controlled by the Philips Hue Bridge and for controlling Philips Hue HDMI sync box.

Home Page: https://extensions.gnome.org/extension/3737/hue-lights/

License: MIT License

JavaScript 99.60% Shell 0.02% Makefile 0.37%
gnome-shell-extension philips-hue smart-home light-control philips-hue-lights philips-hue-api philips-hue-bridge philipshue philips-hue-lighting philips-hue-bulbs

hue-lights's Introduction

hue-lights

screenshot

Gnome Shell extension

hue-lights is a Gnome Shell extension for Philips Hue lights controlled by Philips Hue Bridge on local network. The extension groups the lights in zones and rooms. It is possible to control the state, the brightness, and the color or temperature. The scenes can be activated for the zones or rooms. Multiple bridges are possible to control. It is also possible to set lights that will blink on notification.

Philips Hue Entertainment areas

This Extension supports the Entertainment areas. Using the original app on the phone, you can create an Entertainment area. You can start synchronizing your lights with your screen afterward. The sync feature requires a special key generated on the bridge pairing. Upgrading from version 8 or earlier requires to remove and connect the Philips Hue bridge. Please keep your bridge up to date. The feature also needs the api version 1.22 or newer.

Philips Hue HDMI sync box support

This extension allows controlling Philips Hue HDMI sync box on local network. You can enable/disable synchronization, change the mode, change the intensity, adjust the brightness, select the entertainment area, and select the HDMI input.

Troubleshooting

  1. If you are experiencing any trouble with the upgrade, try to log out and log in again.
  2. If your troubles persist, reset this extension by reseting key: "/org/gnome/shell/extensions/hue-lights/" in gnome.
    • You can call: dconf reset -f /org/gnome/shell/extensions/hue-lights/ or use dconf-editor.
  3. Not vanishing your trouble, please file an issue on GitHub. If you can, please enable debug mode in the settings and attach the log file.
    • You can obtain the logfile like this: journalctl -f /usr/bin/gnome-shell 2>&1 | grep -i hue > hue-lights.log.

Warning

This application makes use of fast changing light effects conditions alone, or in combination with certain content on the screen it may trigger previously undetected epileptic symptoms or seizures in persons who have no history of prior seizures or epilepsy.

Supported Gnome Shell version

This extension supports Gnome Shell verison 45 and above.

Installation from e.g.o

https://extensions.gnome.org/extension/3737/hue-lights

Manual installation

  1. git clone https://github.com/vchlum/hue-lights.git
  2. cd hue-lights
  3. make build
  4. make install
  5. Log out & Log in
  6. gnome-extensions enable [email protected]

Install dependencies

  • These are only required to install from source
  • make
  • gnome-shell (gnome-extensions command)
  • glib-compile-resources
  • libglib2.0-dev-bin
  • gettext
  • These are recommended to run the extension
  • avahi-tools (avahi-browse command for discovering devices on local network)

hue-lights's People

Contributors

jazzzz avatar jvitasek avatar salim-b avatar slrtbtfs avatar vchlum avatar vistaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hue-lights's Issues

Feature: Automatically turn on/off with the program.

Not sure if you take requests like this, so close immediately if not.

Firstly - what an amazing extension! 💖

The only feature I can imagine being added to improve this already amazin' extension even further would be the ability to have a light sync with the starting and stopping of the extension. When I turn on my computer and this extension loads it would turn on a chosen light, and similarly when I shut down my computer and the extension closes it would turn this light off.

Is this even a programmatic possibility?

Extension changes Gnome language settings

Hey,

I'm using this extension on Arch Linux with Gnome 3.38.2 on X11 and noticed that installing this extension changes some of the language settings in Gnome.

For example: I am using Gnome with german language settings. As soon as i install this extension some of the gnome menus appear in english when they are supposed to be in german. I've tried setting the Gnome language settings to english and back to german again. The problem still exists. After uninstalling this extension, everything works fine again.

regards,
hmmSalat

Screen sync only works sometimes

I'm running Zorin OS 16 and when I try to start screen sync it only works about 1 out of 20 times. When i switch it to on no lights starts syncing and if i leave it for about a minute the setting turns of by itself again. If I try to turn it of manually the bridge shows up as disconnected. The 1 out of 20 times when it does work it works for about 10 minutes or so before crashing and all the lights stops syncing and gets stuck on the color they were on. I have tried this with just 1 light and the maximum 10 lights with the same results. Not sure if this is an isolated issue for me or if it can be recreated. Might just have to change distro.

Remove settings button

Hi, I would suggest removing the settings button.
This already exists in the extension configuration and is only for setup purposes, it clutters the menu itself now.

Sync lights with powersave mode (feature request)

It would be great if I could sync lights with scrensaver or powersave states.
My desktop lights are hue contollable. It would be great, if they would switch off when the computer goes into power save and come back on, when I log in again.
The signals seem to be a bit all over the place - so that could be a problem
https://unix.stackexchange.com/questions/28181/how-to-run-a-script-on-screen-lock-unlock
But checking for signal looks pretty straight forward in gdjs
https://askubuntu.com/questions/170263/gnome-shell-js-listen-for-dbus-signal-on-an-interface-for-any-path

Love the extension. Keep up the great work.

Notification triggers Phillips Wall Switch Module unprompted

Hello,

I have been using the hue-lights GNOME extension for a while now with great success. It's been an enjoyable experience for me! Recently I purchased a Phillips Wall Switch Module so that my light switches can be intelligent too. You can see it in the screenshot below - it registers as 'Jonny's Room Light Switch' in the UI.

Screenshot from 2021-09-06 19-43-49

The enabling/disabling of the switch works well as does the battery light indicator however I believe that hue-lights and the switch may have some incompatibilities. Since installing the switch I have noticed that the light will turn on randomly - it doesn't turn off randomly though. I have also noticed occasionly that it will change colour very rapidly to very white light and then to a normal softer light. Sometimes it does this while I am actually using the menu other times it is random. I disabled the extension and it stopped happening. I turn my computer off at night and it has stopped happening.

I have not found a reliable way to reproduce this but I suspect that the extension is communicating the switch by trying to get information and is causing it to behave unexpectedly. I understand that you may not have this wall switch module to test with so I would be happy to provide any assistance to get this fixed. If you can point me to the right part of the code I may even be able to help fix it!

Standalone, non-gnome version?

Back when I was using ubuntu (using Arch now, btw), this was one of my favorite extensions.

Currently, I'm on qtile, and the one thing I really miss from ubuntu/gnome, is this application.

There are other hue apps out there, but none of them come even close to this one, none of them have scenes imported for example.

Other than wanting to use a tiling window manager, one of my main issues with gnome (besides the amount of bloat) is the fact that on every major update, all of the extensions break. Before switching, it was driving me insane, and I experienced it with this extension as well.

So, I'm wondering, have you thought about creating a standalone version of this, so that both gnome users and other DE/WM users can use it? :)

Can't switch off entertaiment area after adding the area without relogin

Hi,

Thank you for your work on this awesome extension !

my setting

(everything is fine, i have succesfuly removed and readded my bridge to make entertainment works) I just set up a new extension area names "Cinema-t":

  • image

Description

When I click on this button:
image

Expected result:

  • image
  • The screen sync (or whatever effect choosen) goes off
  • So i can apply a scene for exemple, or soft switch off the lights

Current result:

  • image
  • The screen sync is still on
  • I can't change scene or soft switch off lights

Hide Icon When Unable to Connect

Whenever I'm using my laptop away from home, I get a notification saying it was unable to connect to my hue sync box. This isn't useful and it a bit annoying. I'd like an option to disable this notification.

Additionally, it'd be nice to hide the icon in the status bar when it can't connect (as I'm likely not home and it's not expected to work).

Maybe this could be smarter and whitelist certain ethernet and wifi networks to attempt connection.

Not possible to open the settings

Hey there,

it isn't possible for me to open the extension settings:
Screenshot from 2021-09-27 19-09-44

The displayed Technical Details:

The settings of extension [email protected] had an error:

TypeError: session.send_message is not a function

Stack trace:

discoverBridges@/home/sam/.local/share/gnome-shell/extensions/[email protected]/phueapi.js:58:30
checkBridges@/home/sam/.local/share/gnome-shell/extensions/[email protected]/phue.js:209:33
HuePrefs@/home/sam/.local/share/gnome-shell/extensions/[email protected]/prefs.js:126:19
buildPrefsWidget@/home/sam/.local/share/gnome-shell/extensions/[email protected]/prefs.js:2021:20
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

I use Arch with Gnome 40.4.

Hub not connecting

In the settings window my hub ip is detected properly but I push the button and then the settings button and it should connect but it don't connect.

Lagging desktop when using entertainment area sync

Hey there,

When I start using the LightSync for entertainment areas on my Linux desktop, the whole system gets very choppy/laggy.

MySetup:

  • CPU: Ryzen Threadripper 2950x
  • GPU: Nvidia RTX2070
  • RAM: 32GB DDR4@3200MHz
  • OS: Pop_OS 21.10
  • Kernel: 5.16.7
  • GnomeShell: 40.4.0
  • Window Server: X11
  • Resolution: 3440x1440@120Hz, DisplayPort
  • Nvidia Driver: 510.47.03

Here is the Debug Log.
For the log I started LightSync, moved some windows around and the stopped it again. If you need further information, please tell me.

Thanks for your great contribution

Cheers
Ex0

"Press bridge button and connect" text unclear

Suggestion/Bad design choice

I would say that the text on the connect to bridge button is not entirely user-proof. I would suggest adding a one more inbetween step where

  1. Connect button
  2. Alert window that tells the person to go to press the physical pairing button
  3. Success message

Or at least some message saying what went wrong when the user presses the button without actually pressing the physical button on the device. I just thought that the extension itself is broken.

Extension version: 6

Buttons: Touch not working?

First thanks! For this, very funny to find it in the gnome extensions :-)

Not sure if it is only me, but I have 2 Lenovo laptops, both running Debian testing//Gnome/Gnome-shell version 41.3

On my X280 the buttons are working both with mouse AND with finger/touch
But on the tiny ideapad D330-10IGM only mouse is working, all buttons fail (the menu's (little triangles) when using touch/fingers.

Only difference is that D330 is running 'Gnome'(/Wayland) and the X280 running 'Gnome on Xorg'

Others have this issue?

Pressing refresh button freezes the entire desktop

When the bridge has been disconnected, the extension menu offers a "Refesh" button instead of a List of Lights/Rooms/Zones/etc.

Pressing that button sometimes freezes the entire desktop and keyboard and mouse input seem to no longer have any effect, not even allowing to switch to a tty. Non graphics related stuff like audio and network connections continue to work, though,

Assign keyboard shortcuts to actions

Using keyboard shortcuts for turning off/on the lights (or other functions) would be a nice feature.
Everything else works perfectly, great job with the extension!

[Feature request] Ability to add different notification lights based on keywords

Hey,

I just downloaded your extension and it works great right out of the box and I really like notification lights feature!

One thing that came into my mind regarding this right away was extension to this feature so I could add some keywords for different notification light colors.

For example:
Default notification color: Blue

If notification contains keyword ['Fail','Failed','Error'... etc]
Notification color: Red

If notification contains keyword ['Slack']
Notification color: Orange

There could be some +-button next to Default notification lights where you could add additional colors and keywords for those lights.

I hope my explanation is clear enough but what do you think?

Notification glitch when the light was originally turned off.

The issue:

Steps to reproduce:

  • manually set the light to red then turn it off;
  • configure that light as notification light and its color as blue;
  • forcefully receive a notification (e.g. using notify-send).

Expected behavior:

  • the light should turn on to blue;
  • the light should turn off.

Actual behavior:

  • the light is turned on to blue;
  • the light is changes color to red and almost immediately turned off.

What's going on:

As far as I can tell the notification roughly works as follows:

  1. save the light state;
  2. set the required notification color and brightness;
  3. restore the old light state.

The issue appears when the light was originally turned off.

Even if it's turned off, the light still has a color and for this reason the state saved on step 1 will be something like:
{"on": false, "xy":[0.3146,0.3303]}.
On step 3 that state is restored (set with transition time as 0) to the light. The problem is that the change of color happens before the change of brightness so you can see the light suddenly changing color before turning off.

Fix for notification lights getting stuck

I sometimes have an issue where many notifications in quick succession will cause the extension to "forget" to unset the notification color on the light. I was reviewing the Hue API and I believe adding "alert": "select" to the parameters you pass to setLights will let you skip the entire "restore lights to previous state" event. You may need to play with transitiontime instead of using the current value of 0 to make it look good though.

Add option to turn of notifications

My notifications panel is filled with "Please check the connection to Philips Hue bridge." and "Connection to Philips Hue bridge restored" when I switch between wired and wireless networks.

Please could there be an option to disable notifications or have a single notification. Maybe change the icon rather than generating a notification.

Thanks

[sync screen] Top/Bottom colors are confused by movies's black borders

Hi,

I am reporting this because I think it would be an huge improvement for movies immersion (since it's probably one of the main purpose of the entertainment areas).

Step to reproduce

  • Set up an entertainment area with the official app
  • Set a light near/on the screen (lightstrip in may case)
  • Set the light as "on the floor/under the level of the screen" -ish position
  • launch a movie 16/9 in a 3/4 screen for example
  • on screen you can see a bottom and top black borders

Let's pretend the screen show sand/sea/sky at screen. with bottom and top black border

A) current result

  • the light goes dark (black's border)

B) exepected result

  • the light should have the same average color than the last movie pixel's color before the bottom border
  • means it should have the sand's color

C) current way to dodge this sideeffect of black border

(for those who want something working-ish for the while)

  • set the light at the same level of the TV in the app
  • but will have the middle screen color
  • means it will have the sea color in our example

Flickering light when some event occures in gnomepanel

thank you for this great piece of software. I wanted to sahre some minor issue i met.

let's say i print a document or some extension is updated and i get a message in gnome panel. Then, lights are switch off an on.

Thanks

Could this be made to work also with Ikea Tradfri?

Type: Wishlist/Suggestion

Could this be made to work also with an Ikea Tradfri gateway on the network? I now realize that the difference between hue and tradfri is or was that tradfri didn't have an API for developers to tinker with but researching this a bit, it seems like people have started hacking on this topic already.

(Yes I understand that it might be out of scope for this project when it is named hue lights and not tradfri or zigbee lights.)

Option to turn of notifications

Hi, thanks for this awesome extension.
When I log in to my computer, sometimes my connection can be messy (vpn connecting and stuff) and the extension spams "connection ... lost" and "connection ... restored".
I would like to be able to turn off notifications for this extension so that I can avoid this.
Thank you.

Question: Switch management

I ahve discivered that the extenion lets me disable and enable hue dimmer switches. What are the percentages next o the switches, battery levels?

Is a hue sync box required to sync lights with screen?

I have installed the app and it is working, but what I am looking to do is sync the screen of my linux media center to my lights. I have done this in the past previously with the amby CLI project but it has not been updated in 4 years and when I recently tried to use it on a reinstalled server environment, it did not work. The README mentions the ability to sync screens to entertainment areas. Is that the same or different than the hue sync box stuff? It appears to be but I do not have a sync box and don't really know what it's for. Reading the docs I would assume these are separate and it would be possible to sync to my linux media servers screen just by using the installed hue-lights gnome extension but I can't figure out how to do that.

The associated connections do not work anymore

Since commit a23cefa, the icon does not show anymore in the panel. The extension is correctly enabled with no error, the settings can be opened from the extension manager, but the icon does not appear.

It looks like the network is not correctly detected because I see this in the debug log: Hue Lights [debug]: Bridge 001788fffe21bbfe is available but it prefers another network.

Sync screen does not seem to work on my device

Hi there,

this is a realy great extension but i have some issues here:

Desccription

When i click on the button "Arbeitszimmer" to sync my Hue light devices to my desctop it will do nothing.
The button deactivates after a few seconds:

Bildschirmfoto vom 2021-05-02 19-02-46

I reconnected the Hue bridge a few times but nothing changed.
I also tested to create a new entertainment area without any success.

My system

OS: Manjaro Linux x86_64
Kernel: 5.12.0-1-MANJARO
GNOME Version: 3.38.4 (neofetch); 40.0.0 (Settings)?
Window manager: X11
Hue-lights Version: 12

TypeError: ExtensionUtils.getSettings is not a function

I performed a manual installation on Gnome Shell 3.28.4 and the extension shows the "error/info" icon in Gnome Tweaks.
I am on Ubuntu 18.04, and trying to open settings shows this error trace:

TypeError: ExtensionUtils.getSettings is not a function

Stack trace:
  @/home/drown/.local/share/gnome-shell/extensions/[email protected]/utils.js:68:20
  @/home/drown/.local/share/gnome-shell/extensions/[email protected]/prefs.js:41:7
  _getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:75:13
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
  @<main>:1:43

I noticed that on the extensions.gnome.org auto install interface the Shell version list was newer shells than mine, but here on the Github I didn't see a mention of a minimum Gnome-Shell version so I figured it was worth a go, but maybe that is the case.
Please let me know either way.
Also, is there an alternative for Philips-Hue aside from your extension?
-- Thanks for any information in advance.

Since version 10 unlocking session turns on entertainment mode

Every morning when I log in, entertainment mode gets enabled (I have only manually enabled it once in the past) and I have to go through a process of refreshing the tray and deactivating entertainment mode multiple times before it will finally let me use my lights normally. How can I gather more info about this to help troubleshoot?

TypeError: this._positionInPanelComboBox is null

The settings of extension [email protected] had an error:

TypeError: this._positionInPanelComboBox is null

Stack trace:

_updateGeneral@/home/pacs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:1758:9
_init@/home/pacs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:1126:14
buildPrefsWidget@/home/pacs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:1944:12
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

System log get spammed with messages when connection drops

Once connection is established to the HUE hub and is lost the extensions start to spam the logs with the following message:

mar 21 13:38:06 pluma gnome-shell[26898]: Object .PhueSyncBoxMenu (0x55ed667ea300), has been already disposed — impossible to set any property on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
mar 21 13:38:06 pluma gnome-shell[26898]: == Stack trace for context 0x55ed60ed01e0 ==
mar 21 13:38:06 pluma gnome-shell[26898]: #0   55ed6b9296a8 i   /home/qlixed/.local/share/gnome-shell/extensions/[email protected]/phuepanelmenu.js:718 (152cbe56ce20 @ 105)
mar 21 13:38:06 pluma gnome-shell[26898]: #1   55ed6b9295c8 i   /home/qlixed/.local/share/gnome-shell/extensions/[email protected]/syncboxmenu.js:1113 (152cbe587c40 @ 61)
mar 21 13:38:06 pluma gnome-shell[26898]: #2   7ffec15ab600 b   /home/qlixed/.local/share/gnome-shell/extensions/[email protected]/syncboxmenu.js:1090 (152cbe587c90 @ 81)

This repeats around every 1 or 2 seconds (I think that is related to the timeout setting settable on the 'Advanced settings' section)
This not happens if the extension starts and connection can't be done the first time.

Imcompatible with GNOME 40

Currently running GNOME 40.0.0 on Arch Linux, and this extension is marked as imcompatible on the GNOME extensions website.

I'm not exactly sure it's marked as incompatible, as I see 40.0 in the shell version dropdown.

image

Manually installing the instructions (as per the README) worked great, and the extension works very well, nice job!

Color changing stopped working

The extension was working fine for days, then suddenly I'm unable to change colors for any light. I can turn them on and off fine. Tried all the troubleshooting steps but none worked. I also tried creating a debug log but the command written on the troubleshooting page just hangs and doesn't output anything.

IKEA bulb reporting wrong colormode (preventing menu from loading)

Hello,

My setup contains a mix of Signify products (lamps, sensors) and a few third party products, among them two TradFri Bulbs : Color Temperature Light (TRADFRI bulb E27 WS opal 980lm)

Bridge association was quite simple and everything worked "out of the box", but suddendly stopped working, on a fresh session clicking the menu showed nothing

Errors were found in the logs :

journalctl /usr/bin/gnome-shell -f -o cat

JS ERROR: TypeError: this.bridesData[bridgeid].lights[lightid].state.xy is undefined
_getGroupColor@/home/dk/.local/share/gnome-shell/extensions/[email protected]/extensionmenu.js:258:1

What the source code says :

 switch (this.bridesData[bridgeid]["lights"][lightid]["state"]["colormode"]) {
                case "xy":
                       [tmpR, tmpG, tmpB] = Utils.XYBriToColor(
                               this.bridesData[bridgeid]["lights"][lightid]["state"]["xy"][0],

A dump of the Ikea Tradfri bulb object :

{"state":{"on":true,"bri":130,"ct":250,"alert":"none","colormode":"xy","mode":"homeautomation","reachable":true},"swupdate":{"state":"notupdatable","lastinstall":"2021-11-10T18:34:35"},"type":"Color temperature light","name":"Color temperature light 1","modelid":"TRADFRI bulb E27 WS opal 980lm","manufacturername":"IKEA of Sweden","productname":"Color temperature light","capabilities":{"certified":false,"control":{"ct":{"min":250,"max":454}},"streaming":{"renderer":false,"proxy":false}},"config":{"archetype":"classicbulb","function":"functional","direction":"omnidirectional"},"uniqueid":"d0:cf:5e:ff:fe:1f:05:7f-01","swversion":"1.2.217"}

Althought colormode is set to "xy", ...["state"]["xy"] is undefined and ["state"]["ct"] is

At this point I chose to ignore Ikea equipements and the menu showed up

       if (this.bridesData[bridgeid]["lights"][lightid]["manufacturername"] === "IKEA of Sweden")
                {
                        Utils.logDebug("Found an IKEA bulb");
                        Utils.logDebug(this.bridesData[bridgeid]["lights"][lightid]["name"]);
                        continue;
                }

But there are many occurences of this check, and I'm not comfortable enough with JS to provide a decent patch

grep -n  '\["state"\]\["xy"\] === undefined' extensionmenu.js
246:            if (this.bridesData[bridgeid]["lights"][lightid]["state"]["xy"] === undefined &&
353:                if (data["lights"][id]["state"]["xy"] === undefined) {
1512:            this.bridesData[bridgeid]["lights"][lightid]["state"]["xy"] === undefined &&
1567:            this.bridesData[bridgeid]["lights"][lightid]["state"]["xy"] === undefined &&

Any help on this ?

Rethink UI

Hi, I would like to present an idea in structuring the UI a bit different.
I for example have 2 bridges and the menu gets way to big with all the light / groups of all bridges at the same time.
Since the bridges represent a location I rarely need them both to be visible at the same time, so my suggestion would be:

Menu:

{ Bridge one }

  • { Bridge one } radio button (selected)
  • { Bridge two } radio button

  • Settings (considering my other ticket, this might be a nice compromise considering you will not see this all the time)
  • Refresh

  • All accessories

Lights

  • All lights

Rooms

  • All rooms

Groups

  • All groups

Scenes

  • All scenes

In the settings you could select which option should be open by default (lights selected as default) or removing the sub menu all together for people who do not care for any of the menus.
Also rooms can be something similar to the bridges and an option to select in the bridge menu.
I'm not sure if sub sub menus is possible though, that would be kinda required...

I did something similar in my syncthing extension.
screenshot

Screen selection missing

As the title says, currently there is no way to select which screen to sync.
On multi screen system configurations, the extended "screen mosaic" is synced which may not be the desired behavior. Furthermore, this may degrade performance.

Icons look weird

First of all: This is one of my favourite GNOME extensions! Thank you for making this!

On my system the icons look a bit weird. It looks like it’s having issues with the transparent parts. The icons look much better in the screenshot example in this project’s readme.

image

I don’t have this issue with other extensions or parts of GNOME.

image

I don’t recall whether this issue has always existed for me or not. Any idea what could be causing this? Is this a bug in the extension?

Bridge needs Button press all day long

Hello, thanks for that awesome extension to the hue lights on my ubuntu 20.04 :)

I tested this and it does not remember my "pairing" with the bridge. I always need to reconnect to the Hue Bridge with Button press.

Iam using Hue essentials on my android connected to that bridge too, should not be a problem or?

Light control triggers

Is it possible to detect when a new notification is created? I would love to be able to have one or more of my bulbs blink and/or change color when a notification arrives.

I really like your extension, simple and useful.

Extension does not yet work with GNOME 42

When I tried to open the extension settings the following error was produced:

The settings of extension [email protected] had an error:

TypeError: Utils.allowedConnectionTypes is undefined

Stack trace:

getConnections@/home/slrtbtfs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:2079:17
_getConnectionWidget@/home/slrtbtfs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:2098:32
_buildBridgesWidget@/home/slrtbtfs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:451:42
_buildWidget@/home/slrtbtfs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:264:32
getPrefsWidget@/home/slrtbtfs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:235:46
buildPrefsWidget@/home/slrtbtfs/.local/share/gnome-shell/extensions/[email protected]/prefs.js:2248:21
_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:32:44
ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:129:33
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:21:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

sync audio

love this thanks!

would also be great to sync audio as with the hue entertainment app

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.