Me and my beloved one both have a motorola one vision, running android 10 and have the home assistant app in latest version 2021.3.1-full installed. Core is at core-2021.3.2, supervisor at supervisor-2021.03.4.
For now, after some struggling and testing, it seems like only the latest registered device receives notifications triggered by automation. I’ve used yaml below as well as splitted and tested some dedicated automations.
alias: Gäste WC Fenster offen beide
description: sollte nicht länger als 30min offen sein
trigger:
- type: opened
platform: device
device_id: c5be36b8c86742e42af05546e9263e2f
entity_id: binary_sensor.contact_sensor
domain: binary_sensor
for:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
condition: []
action:
- device_id: 61b947177b7f83e4ea627cc19608fc9d
domain: mobile_app
type: notify
title: Gäste WC Fenster schliessen
message: ist länger als 30min offen
- device_id: 0f876e50da85ffaaf273ae4619590d97
domain: mobile_app
type: notify
message: ist länger als 30min offen
title: Gäste WC Fenster schliessen
mode: single
Looking at devices, both are discovered well and entities are working fine, eg. battery level etc.
Hi, thanks for your tips. Indeed, using notify sends a notification to one motorola as well as to an also connected lenovo tablet. But not to the second motorola.
Issues in android settings should be fine, if i unregister both moto’s and register in opposite sequence, the other one works fine.
Are you using the same device name for both devices under app configuration? Change the device names in the app and they will change the service call in HA if that doesn’t work you will need to follow the start fresh steps in the documentation. Make sure to change the names on each device so you know which is which
Quick question, are those two using same user id and do they get separate entity id for each device? Try seperate user id if those two are using same just to test.
Not sure why this will happen but can you rollback to previous version to see if it still works?
@kan84: I had a look at a backup from some days ago where both moto’s were connected with same device name. Looking at file core.entity_registry there was only one entry eg. for entity “sensor.motorola_one_vision_akkuzustand”.
Comparing with backup from today there are 2 entries, one with “sensor.motorola_one_vision_akkuzustand” and one “sensor.motorola_one_vision_akkuzustand_2”.
It seems like something definetly went wrong here during device registration.
What I understand is when same device tries to register an entity name and it already exists HA will assign _2.
Could you check in devices/entites if both _1 and _2 are active? Second if they are active can you use both entity names to trigger a notification?
Looks like one entity will not be active when you register the second phone thats why you dont get notification