hassiq icon indicating copy to clipboard operation
hassiq copied to clipboard

Some entities not updating correctly

Open aegjoyce opened this issue 7 years ago • 7 comments

Hi again Alan

I'm finding that some entities do not return data from homeassistant.toggle, instead only returning '[ ]'. However, the POST request is always successful and the entity does get toggled. In my household the problem entities are Fibaro Dimmers and Sonoff switches - everything else (Hue lights, TP link switches) works fine. The issue is that the entity does not then refresh correctly in State View after being toggled as there is no data passed to onServiceReceive.

I've made a new branch (https://github.com/aegjoyce/hassiq/tree/aegjoyce-refresh-after-request) on my repository with a rather ugly patch - this workaround refreshes all entities after an entity is toggled so that after a brief refresh time all entities appear correctly on State View.

I have tried using state.singleUpdate(entity) in place of state.requestUpdate() in this patch but it didn't work - I think it fired off the state request too quickly; state.requestUpdate, whilst slower to perform, works every time. A better fix would be a bit of code where if '[ ]' is received from the POST command, HassIQ waits for ~500ms and then fires off a GET to update the state of the entity.

aegjoyce avatar Feb 10 '19 18:02 aegjoyce

Thanks for reporting this, I'll check out the branch and get a fix in

alanfischer avatar Feb 12 '19 12:02 alanfischer

I have the same issue, meanwhile thanks for the great app :-)

s00500 avatar Mar 11 '19 14:03 s00500

Thanks for the report. I will try to implement a fix in the next few days.

alanfischer avatar Mar 11 '19 14:03 alanfischer

i have try to install this and it's not working

kbtang88 avatar Sep 01 '19 16:09 kbtang88

i have can login on my garmin but i can't see the any of my lights etc.. i have created a group

kbtang88 avatar Sep 01 '19 16:09 kbtang88

Hi Alan,

First off: Kudos for an excellent app! I had no idea that I'd get this capability with my Garmin watch. Your app is clean, simple, and fast!

Here's what I'm seeing and I think it is related to this issue: When I toggle a device (mine are connected through a Lutron Pro bridge using https://github.com/upsert/lutron-caseta-pro), the device toggles correctly, but the status doesn't change in the app unless I leave the app and come back in. It's really not a big deal, but I figure this might give some clues to what others might be seeing.

Thanks again! Matt

mpfurnari avatar Mar 15 '20 13:03 mpfurnari

i have can login on my garmin but i can't see the any of my lights etc.. i have created a group

@kbtang88 I think you are raising a different issue. You might consider opening a new one I had a little bit of an issue getting this to work initially. You need to make sure that your group name in HA matches that which you configure through Garmin Express. I set mine to group.garmin.

Here's a snippet from my config.yaml:

group:

garmin:

    name: Garmin

    entities:

     - light.living_room_cans

mpfurnari avatar Mar 15 '20 13:03 mpfurnari