Still not working for me in .94 .
Guys this is not a ‘emulated hue isn’t working thread’. This thread is dedicated to 1 issue which is unrelated to @huckabeec, @brinzlee issues. I’m assuming this is also the case for @_Mike as well.
If you are having issues with emulated hue unrelated to this thread, please make a new post.
@petro I don’t know that it isn’t an issue with emulated hue…and that the fix is still not working for some…The control of the sonoff’s work fine through the mosquitto broker…its just not reliable with emulated hue and alexa…I assume alexa is not at fault…I still get an occasional not connected and check the power supply so how do we rule it out
This thread has nothing to do with that. The bug in this thread refers to "Item" isn't responding, please check network connection etc
when switching a non-brightness light from on
to off
. Is that your problem? No, no it’s not. The fix deployed in this thread only fixes that, nothing else.
These claims of it not working coming to this thread would be akin to:
“hey my tires don’t spin” In a thread about windshield washers.
Sorry if it’s confusing…but “not connected and check power supply” in my previous post from alexa when I switch on an emulated philips light is what it says…!!! You’re very defensive…I’m sorry I don’t drive so can’t relate to your post about wheels and windscreen washers !!
Right, but does it say that at all times? Or only when you turn it off? Also, does it actually turn the light on and off?
The issue address in this thread is this:
Lights work (They turn ON and OFF without fail), but Alexa will say the phrase Item" isn't responding, please check network connection etc
when moving from the state on
to off
on non-brightness domains (switch, input_boolean, etc).
If you or anyone else doesn’t have this issue. Move to another thread.
Thats better a dialogue…Thanks for you’re help
It does it after the light has switched off…not all the time…but the bigger issue and I don’t know how explain it properly other than to say I have groups within the alexa app, when I ask for example all the lights in the lounge within the Lounge group to switch off, half respond but weirdly the other half will respond from another group totally unrelated…for example the lights in the dining room…there is no correlation between them…
Take a look at my response in the thread you created. I’ll help you over there.
Thank you…!!
You’re error has nothing to do with the thread.
Literally 2 bytes of code were added. As I said. This is unrelated.
Listen. You are having an unrelated issue. The upgrade changed this line:
data[STATE_BRIGHTNESS] = entity.attributes.get(ATTR_BRIGHTNESS)
to this
data[STATE_BRIGHTNESS] = entity.attributes.get(ATTR_BRIGHTNESS, 0)
That’s it. Nothing more nothing less.
Your error is 100% fluke unrelated to the issue addressed in the thread. If you move it to another thread, people won’t ignore you. But you just don’t understand that.
Do you understand the issue in the thread? This is a very nich issue related to a very specific bug. I am 100% certian that you haven’t not fully read the comments and are just trying things.
Let me break it down to you.
This Fix Only fixes THIS:
Physically, your light will turn on and off via Alexa without failure. When your light turns off from on and she says "Item" isn't responding, please check network connection
. But the light still shuts off.
That’s it.
If she says "Item" isn't responding, please check network connection
and your light doesn’t turn on and off then it has NOTHING to do with this thread.
And I’m telling you that it’s unrelated. In fact I looked at the position it’s failing (based on your error). It’s failing on the get which is pulled from the alexa response. Alexa is reporting the wrong entity_id to home assistant. Rediscover you devices and remove non-responsive ones entities. Probably would be best to do it from a browser opposed to the app. That’s why you’re getting those errors and that’s probably why you’re getting the Item" isn't responding, please check network connection etc
. Which again… would be unrelated! but man, who knew.
It’s on alexa’s side, so keep focusing on homeassistant. The entity_id’s in alexa are being cached and used incorrectly. She’s not updating the entity_id’s. Delete all your devices and rediscover. The error you are getting on every device is home assistant saying “I can’t find that entity_id”.
I’m sure there can be a fix to the get function to safely tell the user without an error. That would be a bug. in this section, but the helper functions are returning ‘None’ from what alexa is providing
hass = request.app['hass']
entity_id = self.config.number_to_entity_id(entity_id) #<-- returning None
entity = hass.states.get(entity_id)
Because if home assistant can’t get an entity, how can it respond? Please, elaborate. That code starts the response.
But the log you posted is why you are getting the error…
Your log is not unrelated to your issue, let me explain.
Alexa turns on the light via a put.
Then she does a get.
If the get fails, she says "Item" isn't responding, please check network connection etc
You’re error is happening on the get.
And you aren’t using a custom component? What domain are these devices in?
That’s new. Those report brightness and do not follow the same code. What hardware is this?