Hi,
Then are you able to download without paying on other google accounts?
I suppose you will have to link accounts to be considered family?
I will try to write an example of how to do that soon.
Hi,
Then are you able to download without paying on other google accounts?
I suppose you will have to link accounts to be considered family?
I will try to write an example of how to do that soon.
Yes,
I added my wife’s account to my family group and installed Ariela Pro without buying another license.
Ok great, i am glad its working.
Here is a small example:
- id: '1547281634013'
alias: test BT
trigger:
- platform: mqtt
topic: homeassistant/sensor/android_ionut_bluetooth/state
condition:
- condition: template
value_template: '{{ trigger.payload_json.discovered_devices[0].rssi <= 0 }}'
action:
- data:
entity_id: switch.bedroom_light
service: switch.toggle
What this example do is catch the mqtt state trigger of the phone MQTT sensor by its topic.
The template will try to extract first discovered device and get the rssi, and if a rssi lower then 0 is gound it will toggle the switch.
Note that this is a basic example and the discovered list is not guaranteed to be the same so you may want to check the discovered device name also.
Hi @Ionut thanks for the example automation.
Is there a way to create a template sensor?
for example
take name of device (my phone) and create sensor.phone_name_rssi and have state show rssi value?
use case: install Ariela on an android tv box which is in the lounge room. and use the rssi value of my phone that the android tv box instance picks up to determine if I am in that room.
Thanks
What you can do is add another action and use the mqtt.publish service to create a new sensor.
@Ionut thanks for your help.
I think this is a bit beyond me.
your automation worked - but the switch would toggle on and off constantly. I guess as the first device changed with each scan. It would be great if you could specify a particular name of a device to use as the trigger instead of just the 1st device scanned.
Maybe this will do the trick:
- id: '1547281634013'
alias: test BT
trigger:
- platform: mqtt
topic: homeassistant/sensor/android_ionut_bluetooth/state
condition:
- condition: template
value_template: '{{ (trigger.payload_json.discovered_devices[0].rssi <= -70 and trigger.payload_json.discovered_devices[0].name == "BTDevice") or (trigger.payload_json.discovered_devices[1].rssi <= -70 and trigger.payload_json.discovered_devices[1].name == "BTDevice") }}'
action:
- data:
entity_id: switch.bedroom_light
service: switch.toggle
This example will check if the phone founded a phone with name BTDevice and rssi is <= -70
This example will check the first 2 discovered devices, you may want to to check the rest of them (at least 4-5)
Hello
Any news on the wear os app? I tried on A different phone/ watch with the same result. (Wear os app stuck on loading screen)
Didn’t had the chance to look over the issue but i will soon.
no luck - similar results
Thanks
Can you share your automation?
Hi Ionut,
I have a “strange” request:
Do you think is possible to use Ariela to update position of a second device tracker? In my case till now I use gpslogger and tasker to update position of device_tracker.mycar when my phone is connected to my BT car.
(Useful to remember where I’ve parked the car!)
there’s a way to reproduce this behaviour using Ariela?
Thank you in advance
- id: '1547281634013'
alias: test BT2
trigger:
- platform: mqtt
topic: homeassistant/sensor/android_lounge_bluetooth/state
condition:
- condition: template
value_template: '{{ (trigger.payload_json.discovered_devices[0].rssi <= -70 and trigger.payload_json.discovered_devices[0].name == "Flex 2") or (trigger.payload_json.discovered_devices[1].rssi <= -70 and trigger.payload_json.discovered_devices[1].name == "Flex 2") or (trigger.payload_json.discovered_devices[2].rssi <= -70 and trigger.payload_json.discovered_devices[2].name == "Flex 2") or (trigger.payload_json.discovered_devices[2].rssi <= -70 and trigger.payload_json.discovered_devices[2].name == "Flex 2") or (trigger.payload_json.discovered_devices[3].rssi <= -70 and trigger.payload_json.discovered_devices[3].name == "Flex 2") or (trigger.payload_json.discovered_devices[4].rssi <= -70 and trigger.payload_json.discovered_devices[4].name == "Flex 2") or (trigger.payload_json.discovered_devices[5].rssi <= -70 and trigger.payload_json.discovered_devices[5].name == "Flex 2") or (trigger.payload_json.discovered_devices[6].rssi <= -70 and trigger.payload_json.discovered_devices[6].name == "Flex 2") or (trigger.payload_json.discovered_devices[7].rssi <= -70 and trigger.payload_json.discovered_devices[7].name == "Flex 2") or (trigger.payload_json.discovered_devices[8].rssi <= -70 and trigger.payload_json.discovered_devices[8].name == "Flex 2") or (trigger.payload_json.discovered_devices[9].rssi <= -70 and trigger.payload_json.discovered_devices[9].name == "Flex 2") or (trigger.payload_json.discovered_devices[10].rssi <= -70 and trigger.payload_json.discovered_devices[10].name == "Flex 2") or (trigger.payload_json.discovered_devices[11].rssi <= -70 and trigger.payload_json.discovered_devices[11].name == "Flex 2") or (trigger.payload_json.discovered_devices[12].rssi <= -70 and trigger.payload_json.discovered_devices[12].name == "Flex 2") }}'
action:
- data:
entity_id: light.lounge_room
service: light.toggle
Light turns on for a few seconds then off then on etc
ok so I am trying to create a template sensor, it results in showing the rssi of the alta tracker in the dev template but not as a template sensor
- platform: template
sensors:
ariela_detection:
friendly_name: 'Ariela Detection'
value_template: >-
{% if value_json.discovered_devices[0].name == "Alta" %}
{{value_json.discovered_devices[0].rssi}}
{% elif value_json.discovered_devices[1].name == "Alta" %}
{{value_json.discovered_devices[1].rssi}}
{% elif value_json.discovered_devices[2].name == "Alta" %}
{{value_json.discovered_devices[2].rssi}}
{% elif value_json.discovered_devices[3].name == "Alta" %}
{{value_json.discovered_devices[3].rssi}}
{% elif value_json.discovered_devices[4].name == "Alta" %}
{{value_json.discovered_devices[4].rssi}}
{% elif value_json.discovered_devices[5].name == "Alta" %}
{{value_json.discovered_devices[5].rssi}}
{% elif value_json.discovered_devices[6].name == "Alta" %}
{{value_json.discovered_devices[6].rssi}}
{% elif value_json.discovered_devices[7].name == "Alta" %}
{{value_json.discovered_devices[7].rssi}}
{% elif value_json.discovered_devices[8].name == "Alta" %}
{{value_json.discovered_devices[8].rssi}}
{% elif value_json.discovered_devices[9].name == "Alta" %}
{{value_json.discovered_devices[9].rssi}}
{% elif value_json.discovered_devices[10].name == "Alta" %}
{{value_json.discovered_devices[10].rssi}}
{% elif value_json.discovered_devices[11].name == "Alta" %}
{{value_json.discovered_devices[11].rssi}}
{% elif value_json.discovered_devices[12].name == "Alta" %}
{{value_json.discovered_devices[12].rssi}}
{% elif value_json.discovered_devices[13].name == "Alta" %}
{{value_json.discovered_devices[13].rssi}}
{% elif value_json.discovered_devices[14].name == "Alta" %}
{{value_json.discovered_devices[14].rssi}}
{% elif value_json.discovered_devices[15].name == "Alta" %}
{{value_json.discovered_devices[15].rssi}}
{% elif value_json.discovered_devices[16].name == "Alta" %}
{{value_json.discovered_devices[16].rssi}}
{% elif value_json.discovered_devices[17].name == "Alta" %}
{{value_json.discovered_devices[17].rssi}}
{% elif value_json.discovered_devices[18].name == "Alta" %}
{{value_json.discovered_devices[18].rssi}}
{% else %}
failed
{% endif %}
just wondering if anyone has some insight why its not working
UPDATE WORKED IT OUT - I was creating wrong kind of template sensor (with no entity id)
- platform: mqtt
state_topic: "homeassistant/sensor/android_lounge_bluetooth/state"
name: "RSSI"
# unit_of_measurement: "rssi"
value_template: >-
{% if value_json.discovered_devices[0].name == "Alta" %}
{{value_json.discovered_devices[0].rssi}}
{% elif value_json.discovered_devices[1].name == "Alta" %}
{{value_json.discovered_devices[1].rssi}}
{% elif value_json.discovered_devices[2].name == "Alta" %}
{{value_json.discovered_devices[2].rssi}}
{% elif value_json.discovered_devices[3].name == "Alta" %}
{{value_json.discovered_devices[3].rssi}}
{% elif value_json.discovered_devices[4].name == "Alta" %}
{{value_json.discovered_devices[4].rssi}}
{% elif value_json.discovered_devices[5].name == "Alta" %}
{{value_json.discovered_devices[5].rssi}}
{% elif value_json.discovered_devices[6].name == "Alta" %}
{{value_json.discovered_devices[6].rssi}}
{% elif value_json.discovered_devices[7].name == "Alta" %}
{{value_json.discovered_devices[7].rssi}}
{% elif value_json.discovered_devices[8].name == "Alta" %}
{{value_json.discovered_devices[8].rssi}}
{% elif value_json.discovered_devices[9].name == "Alta" %}
{{value_json.discovered_devices[9].rssi}}
{% elif value_json.discovered_devices[10].name == "Alta" %}
{{value_json.discovered_devices[10].rssi}}
{% elif value_json.discovered_devices[11].name == "Alta" %}
{{value_json.discovered_devices[11].rssi}}
{% elif value_json.discovered_devices[12].name == "Alta" %}
{{value_json.discovered_devices[12].rssi}}
{% elif value_json.discovered_devices[13].name == "Alta" %}
{{value_json.discovered_devices[13].rssi}}
{% elif value_json.discovered_devices[14].name == "Alta" %}
{{value_json.discovered_devices[14].rssi}}
{% elif value_json.discovered_devices[15].name == "Alta" %}
{{value_json.discovered_devices[15].rssi}}
{% elif value_json.discovered_devices[16].name == "Alta" %}
{{value_json.discovered_devices[16].rssi}}
{% elif value_json.discovered_devices[17].name == "Alta" %}
{{value_json.discovered_devices[17].rssi}}
{% elif value_json.discovered_devices[18].name == "Alta" %}
{{value_json.discovered_devices[18].rssi}}
{% else %}
failed
{% endif %}
So if any one wants the RSSI value of a specific bluetooth device (eg their phone) replace “Alta” with name of phone that is scanned and reported in the json output (you can see the json output by using a program like MQTTLens.
Cheers and thanks to @Ionut for the original guidance with json templating
Also if someone has a more elegant solution which I’m sure there will be please let me know
tagging @matisaul
Can you tell me what exacly do with tasker (commands you send)?
I am glad to hear that worked
When I’m connected to my car’s BT I get GPS using Tasker, then split %LOC variable in 2 parts and do an http get :
Could we please create a new grouping for this App on the community and lock this thread? 1000 messages in a single thread is simply impossible to follow. Then get new questions on separate discussions.
Not sure if Discourse can nest deeper than 2 levels, if it can, maybe a phone apps group then Ariela so the 3rd Party list does not grow too big?
Agree I think we need a section in the forum where the updated can be collated into one thread and questions in seperate threads. Similar questions are being asked and it’s getting difficult to track where the app is upto because @Ionut is doing such an awesome job updating it!