question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WearOS - Ewelink addon switches: Unable to find referenced entities switch.xxx

See original GitHub issue

Home Assistant Android version: beta-1716-40e7907-full Home Assistant Wear OS version: beta-1716-40e7907 Android version: 11 Wear OS version: 3 Phone model: Oneplus Nord Watch model: Samsung Galaxy Watch 4 Last working Home Assistant release (if known): None

Description of problem:

Selecting an Ewelink Addon entity in the WearOS app doesn’t do anything but a logevent:

WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.1000a403aa

If I enable toast it shows the message eg: “Front yard lamps was selected” but the selection does nothing just the log message. Front yard lamp is switch.1000a403aa and I have tried with several other entities all with the same result. These entities are mainly coming from the Ewelink addon. My only switch that is not from ewelink is the Synology NAS Home mode. That is working perfectly and ewelink switches working from the android phone version, too.

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):


Screenshot of problem:

Additional information:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dshokouhicommented, Nov 25, 2021

So basically it is not working when I call the toggle service regardless of the user interface, even from the Developer tools.

That is a bug with the add-on itself and not a bug with the app because it is happening from the HA frontend. I suggest you file an issue with the add-on creator to see if switches created from it can use the switch.toggle service call as that is what the app uses in some areas.

https://developers.home-assistant.io/docs/core/entity/switch#toggle

Closing this issue for now but do let us know the outcome of the issue you open there.

0reactions
peterterbecommented, Nov 25, 2021

The above error message has been created on each retry (even if the switch was successful).

  • I can turn the switch on and off from:
    • Web UI
    • Developer tools/Services Switch: Turn on and Turn off
    • Android app
    • Android 11 Device control screen
    • Android widget with Service Switch.Turn_on/Switch.Turn_off
  • I can NOT switch them on and off from:
    • Developer tools/Services Switch: Toggle
    • Android widget with Service Switch.Toggle
    • Wear OS app

So basically it is not working when I call the toggle service regardless of the user interface, even from the Developer tools.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wear OS home assistant control - Home Assistant Community
I found this article , WearOS - Ewelink addon switches: Unable to find referenced entities switch.xxx · Issue #1954 · home-assistant/android ...
Read more >
Grid Connect Smart Home devices at Bunnings
Over the last years I've aquired a few smart power switches. ... and group multiple into a room, I'm unable to get them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found