Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Hue Addon #11

Closed
jensfr1 opened this issue Jan 16, 2019 · 7 comments
Closed

Hue Addon #11

jensfr1 opened this issue Jan 16, 2019 · 7 comments
Assignees

Comments

@jensfr1
Copy link

jensfr1 commented Jan 16, 2019

Hi,
I used the HUE addon you have posted in the description. It works well. Thanks a lot!
Just a suggestion.

  • Get the light status (on,off, color) before the alarm on the lamp is activated and set back to the prior status once it is completed.

I was watching TV, then it turned green and then light went off so I had to turn it on again and change the color.

Thanks, Jens

@Zefau
Copy link
Collaborator

Zefau commented Jan 20, 2019

Thanks for the feedback. I added the functionality. Please test and report back if it works correctly.

Thanks,
Zefau

@Zefau Zefau self-assigned this Jan 20, 2019
@jensfr1
Copy link
Author

jensfr1 commented Jan 20, 2019

Getting an error:

20.1.2019, 18:20:07.679	[info ]: javascript.0 Stop script script.js.common.turnlight
20.1.2019, 18:20:07.724	[info ]: javascript.0 Start javascript script.js.common.turnlight
20.1.2019, 18:20:07.725	[info ]: javascript.0 script.js.common.turnlight: registered 1 subscription and 0 schedules
20.1.2019, 18:20:10.332	[error]: javascript.0 script.js.common.turnlight: The "getState" method cannot be used synchronously, because the adapter setting "Do not subscribe to all states on start" is enabled.
20.1.2019, 18:20:10.333	[error]: javascript.0 script.js.common.turnlight: Please disable that setting or use "getState" with a callback, e.g.: getState("hue.1.Philips_hue.TV_Licht.on", (err, state) => { ... });
20.1.2019, 18:20:10.333	[error]: javascript.0     at script.js.common.turnlight:79:108
20.1.2019, 18:20:10.333	[error]: javascript.0     at script.js.common.turnlight:79:29
20.1.2019, 18:20:10.333	[error]: javascript.0     at colors (script.js.common.turnlight:75:13)
20.1.2019, 18:20:10.333	[error]: javascript.0     at Object.<anonymous> (script.js.common.turnlight:23:9)

@Zefau
Copy link
Collaborator

Zefau commented Jan 21, 2019

You have activated the checkbox Do not subscribe to all states on start in the ioBroker.javascript adapter settings. Untick the checkbox and try again.

@jensfr1
Copy link
Author

jensfr1 commented Jan 21, 2019

Still getting this?
1/21/2019, 7:42:03 PM.199 [error]: javascript.0 at Object. (script.js.common.turnlight:23:9)

In the adapter for JS I have activated SetObject and Exec. Alexa is working fine!

@Zefau
Copy link
Collaborator

Zefau commented Jan 25, 2019

What code line is in row 23 (script.js.common.turnlight:23:9)?

@jensfr1
Copy link
Author

jensfr1 commented Jan 25, 2019

Sorry for my error report. The issue is sitting in front of the laptop.. It works fine. Just tried it. Code was not in global but in common area. :-) Funktioniert echt super!!!

@Zefau
Copy link
Collaborator

Zefau commented Jan 26, 2019

perfect :)

@Zefau Zefau closed this as completed Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants