Gh61 / lovelace-hue-like-light-card

This card provides a Hue-like way to control your lights in Home Assistant.
GNU Lesser General Public License v2.1
161 stars 12 forks source link

Add hue light slider to scene pages #10

Closed cas112358 closed 1 year ago

cas112358 commented 1 year ago

Is it possible to add the lights slider / buttons to the scene page that pops up.

This is similar to the functionality you get with the hue controls.

I can see there is a stub that looks like it might be starting to do that already.

Gh61 commented 1 year ago

I am planning on adding complete light functionality on hue-screen, together with possibility to change color of individual lights, turn them off and so on.

This will take some time for me to do, so maybe it's not a bad idea to add light switches as the first step in some of the upcoming versions befo the full functionality will be available.

cas112358 commented 1 year ago

Hi,

I would be happy to help you with this if possible.

Do you have a guide on what dependancies are required to build this locally?

Thanks Carwyn

On Tue, 7 Feb 2023, 11:18 Tomáš Zenkner, @.***> wrote:

I am planning on adding complete light functionality on hue-screen, together with possibility to change color of individual lights, turn them off and so on.

This will take some time for me to do, so maybe it's not a bad idea to add light switches as the first step in some of the upcoming versions befo the full functionality will be available.

— Reply to this email directly, view it on GitHub https://github.com/Gh61/lovelace-hue-like-light-card/issues/10#issuecomment-1420610059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUVRVHTBMOQRBGEQWHBOGTWWIVQXANCNFSM6AAAAAAURJLBCI . You are receiving this because you authored the thread.Message ID: @.***>

Gh61 commented 1 year ago

For the full functionality I am planning to develop entirely new hue-like multiple color-picker component (I have some private WIP project), so i'd like to keep this on me.

But if you want to contribute on the light tiles, there's nothing stoping you.

You just need VS code and npm, so you can restore all dependencies and build the project. For debugging I am using Live Server extension so I can host the result locally and test it on my HA.

I am pretty new to this environment, so this might not be the best dev stack, but it's working for me.

cas112358 commented 1 year ago

Hi,

Great thanks.

On Tue, 7 Feb 2023, 11:38 Tomáš Zenkner, @.***> wrote:

For the full functionality I am planning to develop entirely new hue-like multiple color-picker component (I have some private WIP project), so i'd like to keep this on me.

But if you want to contribute on the light tiles, there's nothing stoping you.

You just need VS code and npm, so you can restore all dependencies and build the project. For debugging I am using Live Server extension https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer so I can host the result locally and test it on my HA.

I am pretty new to this environment, so this might not be the best dev stack, but it's working for me.

— Reply to this email directly, view it on GitHub https://github.com/Gh61/lovelace-hue-like-light-card/issues/10#issuecomment-1420633310, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUVRVANYFOSORJ6B22IU63WWIX2LANCNFSM6AAAAAAURJLBCI . You are receiving this because you authored the thread.Message ID: @.***>

Gh61 commented 1 year ago

I see, you had forked the repository and probably setup the environment.

Please write a comment here, if you make any major progress. I don't want to waste your time, but also don't want relay on your progress.

Thanks for your understanding

cas112358 commented 1 year ago

Hi,

I have forked and tried to build the project. But when I roll up into the .js file I get a file that is twice the size of your js file and home assistant doesn't find the card once I have installed it via the custom repository in hacs.

But if I figure that out I will comment any progress back here.

On Mon, 13 Feb 2023, 14:39 Tomáš Zenkner, @.***> wrote:

I see, you had forked the repository and probably setup the environment.

Please write a comment here, if you make any major progress. I don't want to waste your time, but also don't want relay on your progress.

Thanks for your understanding

— Reply to this email directly, view it on GitHub https://github.com/Gh61/lovelace-hue-like-light-card/issues/10#issuecomment-1428050840, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUVRVH5PQVP4HVBAJMKQGTWXJBRHANCNFSM6AAAAAAURJLBCI . You are receiving this because you authored the thread.Message ID: @.***>

Gh61 commented 1 year ago

The size is correct for the dev version as it is not minimized. Once you install the dev version of the card you must use the -test postfix. As in type: custom:hue-like-light-card-test

Is suggest to use some local server hosting (Live Server extension) and add the http://localhost:XXX/dist/hue-like-light-card.js to your Lovelace Resources manually. As it is much faster, than using releases to update after every change.

cas112358 commented 1 year ago

Great thanks, I will give it a go.

Thanks Carwyn

On Mon, 13 Feb 2023, 15:35 Tomáš Zenkner, @.***> wrote:

The size is correct for the dev version as it is not minimized. Once you install the dev version of the card you must use the -test postfix. As in type: custom:hue-like-light-card-test

Is suggest to use some local server hosting (Live Server extension https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) and add the http://localhost:XXX/dist/hue-like-light-card.js to your Lovelace Resources manually https://github.com/Gh61/lovelace-hue-like-light-card#manual. As it is much faster, than using releases to update after every change.

— Reply to this email directly, view it on GitHub https://github.com/Gh61/lovelace-hue-like-light-card/issues/10#issuecomment-1428151668, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUVRVGPTBHTAWQ5IQXRGZDWXJIERANCNFSM6AAAAAAURJLBCI . You are receiving this because you authored the thread.Message ID: @.***>

cas112358 commented 1 year ago

Hi, Have added this basic functionality to my fork, it isn't pretty in places but it functionally works if you want to have a play with it. https://github.com/cas112358/lovelace-hue-like-light-card/releases/tag/v0.6

Gh61 commented 1 year ago

Hi I appreciate the time you put into this. I saw your screenshots and commits and I see you have added sliders and also changed some other things to your likings.

Sorry to say this, but I have a little different vision for light controls on hue-screen and I also want to make much more configuration options for the description (sub-title) on card. Also my ego little bit kicks in and I kinda want to make these crucial parts myself (this was the reason for me to even start working on this).

Hopefully your forked card now provides the functionality, you were looking for. And I see similar functions coming to this version soon.

cas112358 commented 1 year ago

Hi,

No problem, completely understand.

I will keep an eye on your progress.

Thanks Carwyn

On Fri, 17 Feb 2023, 19:10 Tomáš Zenkner, @.***> wrote:

Hi I appreciate the time you put into this. I saw your screenshots and commits and I see you have added sliders and also changed some other things to your likings.

Sorry to say this, but I have a little different vision for light controls on hue-screen and I also want to make much more configuration options for the description (sub-title) on card. Also my ego little bit kicks in and I kinda want to make these crucial parts myself (this was the reason for me to even start working on this).

Hopefully your forked card now provides the functionality, you were looking for. And I see similar functions coming to this version soon.

— Reply to this email directly, view it on GitHub https://github.com/Gh61/lovelace-hue-like-light-card/issues/10#issuecomment-1435116512, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUVRVGXUW7P6FJXXRWTBEDWX7EIVANCNFSM6AAAAAAURJLBCI . You are receiving this because you authored the thread.Message ID: @.***>

Gh61 commented 1 year ago

Resolved in the current Release.