Minims / SomfyProtect2MQTT

Somfy Protect to MQTT
GNU General Public License v3.0
71 stars 9 forks source link

Presence doesn't match the app info #164

Closed sudomax closed 1 month ago

sudomax commented 1 month ago

Fob says at home on the app while it says away with somfy2mqtt.

Minims commented 1 month ago

Hello, do you speak of device_tracker.badge_de_****_presence entity ?

sudomax commented 1 month ago

I'm using the key fob

On Mon, 15 Jul 2024, 22:32 Minims, @.***> wrote:

Hello, do you speak of device_tracker.badgede****_presence entity ?

— Reply to this email directly, view it on GitHub https://github.com/Minims/SomfyProtect2MQTT/issues/164#issuecomment-2229348390, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMVQVJFPLRX7CJNCMO65XTZMQWUZAVCNFSM6AAAAABK3EWNKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGM2DQMZZGA . You are receiving this because you authored the thread.Message ID: @.***>

Minims commented 1 month ago

There is many entity for the keyfob, and at least 2 report key fob presence. I think it the _presence entity here, update via websocket. If it's this one I can't do anything as Somfy websocket is not as stable as expected to have no false positive.

sudomax commented 1 month ago

I'm using device_lost. I don't think presence entity was there when I first set it up.

From your message, I understand _presence cannot be trusted either?

On Mon, 15 Jul 2024, 22:50 Minims, @.***> wrote:

There is many entity for the keyfob, and at least 2 report key fob presence. I think it the _presence entity here, update via websocket. If it's this one I can't do anything as Somfy websocket is not as stable as expected to have no false positive.

— Reply to this email directly, view it on GitHub https://github.com/Minims/SomfyProtect2MQTT/issues/164#issuecomment-2229406912, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMVQVMXKZIGUT5323Q7WGDZMQYYFAVCNFSM6AAAAABK3EWNKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGQYDMOJRGI . You are receiving this because you authored the thread.Message ID: @.***>

Minims commented 1 month ago

None of them can be trust.. There is no api call telling is someone is at home or not.

_presence is based on websocket. it usually miss some messages. _device_lost is based on signal seen by the Link. It can be NOT SYNC if :

In all case you need to change next badge change to validate it works again. (it means for example if not home, wait until the badge is home again )

Sorry, I will not be able to give more accurate entities with the tools provided by somfy.

sudomax commented 1 month ago

Thank you for the extra info!