Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use as light switch in integration #155

Closed
dodg3r opened this issue Jan 16, 2020 · 39 comments
Closed

Use as light switch in integration #155

dodg3r opened this issue Jan 16, 2020 · 39 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dodg3r
Copy link

dodg3r commented Jan 16, 2020

Hi.

Is it possible to get an option in the integration page to use shelly plugs as lights ?
I know I can do this by using light_switch: true i yaml but it would be rather nice having it in the integrations page :)

Thanks for all the great work !!

@hakana
Copy link
Contributor

hakana commented Jan 16, 2020

I will check this

@hakana hakana added the enhancement New feature or request label Jan 21, 2020
@chemelli74
Copy link
Contributor

Would getting the type from cloud work ? You can set socket or light in Shelly app.
This is the way Alexa skill works.

Simone

@chemelli74 chemelli74 added the investigating Checking code label Feb 20, 2020
@dodg3r
Copy link
Author

dodg3r commented Feb 25, 2020

Hi.

Yes, good idea..

@ValiEne
Copy link

ValiEne commented Mar 26, 2020

Hi guys,
Any workaround to change the Shelly entities from switch to light? By default all my shellies (1 PM and 2.5) are saw as switches not as lights. As i'm using them all to toggle house lights I would really like to have the Lovelace icons lit up when the lights are turned on.

@hakana
Copy link
Contributor

hakana commented Mar 26, 2020

You can set that in config.yaml. see readme file.

@ValiEne
Copy link

ValiEne commented Mar 26, 2020

Thanks a lot @hakana

@chemelli74 chemelli74 added this to the 0.2.0 milestone Apr 9, 2020
@SuperCocov9
Copy link

You can set that in config.yaml. see readme file.

I think the guy was talking about the integration way, wich shall ignore configuration.yaml when activated.

@hakana
Copy link
Contributor

hakana commented Apr 10, 2020

You can set that in config.yaml. see readme file.

I think the guy was talking about the integration way, wich shall ignore configuration.yaml when activated.

It is not possible to set as light when using integration way. It will be possible in 0.1.8

@SuperCocov9
Copy link

That's nice

You can set that in config.yaml. see readme file.

I think the guy was talking about the integration way, wich shall ignore configuration.yaml when activated.

It is not possible to set as light when using integration way. It will be possible in 0.1.8

That's nice, thank you hakana.

@oscar-b
Copy link

oscar-b commented Apr 21, 2020

I have the following in my configuration.yaml, which has worked fine previously, but now I'm just getting switches..

shelly:
  discovery: true
  devices:
    - id: "7AE262"
      light_switch: true

Can't find anything in the log either.

image

@hakana
Copy link
Contributor

hakana commented May 4, 2020

Can you please see if this work in the latest release 0.1.8

@mandelflanders
Copy link

mandelflanders commented May 4, 2020

I also had same issue earlier.
Tested 0.1.8 earlier today. Still had same problem.

@hakana
Copy link
Contributor

hakana commented May 4, 2020

Are you running to integrations of ShellyForHass, one in config.yaml and on in UI?

@mandelflanders
Copy link

Using config.yaml with 0.16 (reverted to that because of this and issues with entity renaming on restart)

First tried conversion to UI setup for 0.17 a few weeks ago. (reverted back to 0.16 then aswell)
When updating to 0.18 today, appears that setting was already "fixed" as UI-config. Could be that I missed something about the light-toggle in the swiching between different releases.

Any tips on how can I revert from UI setup to config-setup? Perhaps that would solve my issue?

@SuperCocov9
Copy link

I am using the integration ui, still seeing them as switch and cant see the option to make them appear as a light.

@hakana
Copy link
Contributor

hakana commented May 4, 2020

@SuperCocov9 The option to change them to light is only available when using config.yaml

In the next release, it will check if you have set them to light in the app and use this setting and show them as light in HA.

@denniswham
Copy link

@SuperCocov9 The option to change them to light is only available when using config.yaml

In the next release, it will check if you have set them to light in the app and use this setting and show them as light in HA.

I also found this works as expected with the integration ui vetsion 0.16, and not anymore with 0.17 or 0.18. Using 0.16 you still have to define the light entity in the config.yaml.

@hakana
Copy link
Contributor

hakana commented May 7, 2020

Added in 0.1.9-b1

@hakana hakana modified the milestones: 0.2.0, 0.1.9 May 7, 2020
@hakana hakana removed the investigating Checking code label May 7, 2020
@chemelli74
Copy link
Contributor

Please update to latest beta (0.1.9.b1) and recheck.

Simone

@chemelli74 chemelli74 added the waiting for feedback Looking for feedback label May 8, 2020
@denniswham
Copy link

At first sight, works like a charm! Many thanks!

@d3m3trius
Copy link

Don't take this the wrong way, but IMHO using the cloud setting is not a solution for the issue, just a "dirty" workaround.
Considering that in future HA integrations for devices are moving away from yaml config, a proper solution should be found.

@hakana
Copy link
Contributor

hakana commented May 8, 2020

@d3m3trius I don't get your point, what do you think is wrong with using the settings from the Shelly app? I nether see how this is related to moving from config.yaml.

We are moving from config.yaml but the GUI options for a integration in HA are very limited so there is no good way to configure device settings there. We work on a solution with a configuration page for Shelly where all options will be available.

@SuperCocov9
Copy link

At first sight, works like a charm! Many thanks!

Same here. Nice

@oscar-b
Copy link

oscar-b commented May 8, 2020

@d3m3trius I don't get your point, what do you think is wrong with using the settings from the Shelly app?

I for one don't use any of the Shelly cloud functionality, and don't plan to. Only reason for using this integration is that the Shelly Plug S can't be flashed with custom firmware, which is the only way to guarantee devices are local only. Is this setting stored in "cloud", or on the device?

@hakana
Copy link
Contributor

hakana commented May 8, 2020

@oscar-b For the users using the app it is a nice function as you see on the comments above. If you don't want to use the cloud you can configure that in the config.yaml or do your own light_switch templates.

I don't agree that the only reason to use this is that Shelly Plug S not flashable for you. Majority using Shellys out of the box without flashing.

So the option is still there for running 100% locally!

BTW, why can't you flash your Shelly Plug S?

@oscar-b
Copy link

oscar-b commented May 8, 2020

@oscar-b For the users using the app it is a nice function as you see on the comments above. If you don't want to use the cloud you can configure that in the config.yaml or do your own light_switch templates.

The "problem" and confusion here is that functionality was removed; previously it was possible to setup a switch to be exposed as a light without using the Shelly app or using a template.

I don't agree that the only reason to use this is that Shelly Plug S not flashable for you. Majority using Shellys out of the box without flashing.

No of course not, but for me it is :) I prefer to know exactly what's running on my IoT devices, especially hardware. But this addon is really nice!

BTW, why can't you flash your Shelly Plug S?

There are no exposed headers, and the shell seemed quite hard to open without breaking it. Running ESPHome on all my Shelly 1/2/2.5 otherwise :)

@oscar-b
Copy link

oscar-b commented May 8, 2020

BTW, why can't you flash your Shelly Plug S?

There are no exposed headers, and the shell seemed quite hard to open without breaking it. Running ESPHome on all my Shelly 1/2/2.5 otherwise :)

Looked it up again, seems it is possible after all, will give it a try :) (ah now I remember, I needed the energy monitor support which ESPHome didn't have at the time at least).

@chemelli74
Copy link
Contributor

@hakana, good one; works really fine.

Just one small improvement: can you delete the old "switch" when creating the new one as light ?

Simone

@hakana
Copy link
Contributor

hakana commented May 9, 2020

Im not sure if it good to do that automaticly and loose statistics etc. But I will have a look on that.

@d3m3trius
Copy link

@hakana One of the main use of HA (for me) is to avoid proprietary apps and cloud.
By the way, integrations GUI is more practical but it is not a problem to continue using the configuration yaml at the moment.
However, I think the issue should be keep open until a proper (cloud-less) solution is implemented.

@chemelli74
Copy link
Contributor

@hakana One of the main use of HA (for me) is to avoid proprietary apps and cloud.

Take care that this is your view, not mandatory for all other users.

However, I think the issue should be keep open until a proper (cloud-less) solution is implemented.

Solution is already there: you need to configure each switch manually as light.
Device itself has no info about the load type.

Simone

@chemelli74 chemelli74 removed the waiting for feedback Looking for feedback label May 9, 2020
@inforsgit
Copy link

I've just tried the 0.19b1 but this doesn't work for me. I checked and the lights (on Shelly 1 devices) are set as lights but when I remove the integration and re-add they come back as switches :(

@SuperCocov9
Copy link

I've just tried the 0.19b1 but this doesn't work for me. I checked and the lights (on Shelly 1 devices) are set as lights but when I remove the integration and re-add they come back as switches :(

Did you set your cloud key and server of shelly cloud on the integration?

@inforsgit
Copy link

I hadn't and that fixes it perfectly...thank you!!

@MMMM78
Copy link

MMMM78 commented Jun 9, 2020

Hi, I just found out this great integration. But I see too that shelly 1 devices will be set as 'switch' and cannot be changed to 'light' through the UI.
I use the UI integrat version 0.1.8 and I don't use the shelly app.

Do I understand the above information correctly hat it will possible to change devices from 'switch' to 'light' in an upcoming update? I hope so :) Thanks!

@hakana
Copy link
Contributor

hakana commented Jun 9, 2020

You can do that if you use config.yaml setting up ShellyForHass. We will add that in GUI shortly.

@chemelli74
Copy link
Contributor

and if you use Cloud, type can be loaded from Shelly App config ;-)

Simone

@MMMM78
Copy link

MMMM78 commented Jun 10, 2020

We will add that in GUI shortly.

I’ll wait for it :) Thanks! Any rough idea about when this will be available?

@MMMM78
Copy link

MMMM78 commented Jun 10, 2020

and if you use Cloud

Nooo :) No cloud for me if it’s not necessary haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests