SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
733 stars 112 forks source link

Devices don't show up in Automations #73

Closed JustCallMeCrash closed 4 years ago

JustCallMeCrash commented 4 years ago

Trying to automate some of my Wyze devices, but they don't show up in the list when I try to automate them. I have 8 Wyze bulbs and 4 Wyze plugs, they all show up on Lovelace, but aren't available for automations.

SecKatie commented 4 years ago

They are called entities. To use them in automations you have to call the light service and target the entity with the light.on

Adding Entity to Automation

JustCallMeCrash commented 4 years ago

Oh, man! Thank you - I had been beating my head against this.

On Mon, Aug 17, 2020 at 10:28 AM Joshua Mulliken notifications@github.com wrote:

They are called entities. To use them in automations you have to call the light service and target the entity with the light.on

[image: Adding Entity to Automation] https://camo.githubusercontent.com/325b8ee0d46c1df9d7168264dc6f3ab814fdf0ea/68747470733a2f2f692e696d6775722e636f6d2f42437771684d702e706e67

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JoshuaMulliken/ha-wyzeapi/issues/73#issuecomment-674914701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3NO7YO4PB7INFGHVMB6DDSBE47DANCNFSM4P73F7TQ .

SecKatie commented 4 years ago

@JustCallMeCrash no worries!

oliverkurth commented 3 years ago

Can we have this documented? It took me some time figure this out. It's counterintuitive, because this is very different to the kasa switches/plugs which I had already working. I was assuming it would be the same.

Actually I created a workaround by editing the yaml like this (copied from the kasa switches and using a random id):

-  type: turn_on
    device_id: 2c9119983fa5b04fb090722fa7c4ebf5
    entity_id: switch.kitchen_window_lights
    domain: switch

I was going to file a bug, but found this issue when searching for it.

oudoulj commented 3 years ago

Can we have this documented? It took me some time figure this out. It's counterintuitive, because this is very different to the kasa switches/plugs which I had already working. I was assuming it would be the same.

... I was going to file a bug, but found this issue when searching for it.

Yep, same as above. I scratched my head a while desperately looking for a bulb device to add to my automation before I dug up that thread. I think it would be worth adding this "Call service" example to the readme :wink: Thank you again for the handy integration !

SecKatie commented 3 years ago

@oliverkurth @oudoulj I will type something up in the readme!

SecKatie commented 3 years ago

I have added a section to the readme in this commit: https://github.com/JoshuaMulliken/ha-wyzeapi/commit/db71d27baab72d622fd97701fb4482f98624cdba