Owntracks iBeacon automate on Signal strength?

I am trying to setup 2 beacons. One that covers my whole house and other only the bedroom. In my living room, i dont get the bedroom beacon signal. So is there a way to set a rule like-
IF bedroom signal non existant AND whole house beacon signal strgneth<50 THEN
Set state to LIVINGROOM.

Is this possible?

You could use a template sensor to create something like this. Fairly good example integrated in HA webui already.

You mean using the proximity sensor?

Getting the signal of the beacons I can’t really help with but the second part is well within what a Binary template sensor can do.

Example could be something like this:

  - platform: template
    sensors:
      livingroom:
        value_template: '{% if is_state("states.sensor.housebeacon.strength.signal < 50") and is_state("states.sensor.bedroombeacon.strength.signal < 1") %} on {% else %} off {% endif %}'
        friendly_name: 'Living room'
        sensor_class: occupancy

Haven’t tested the code above and the sensors are fictive but I think you get the idea. :slight_smile:

Prefect…will give it a try, thanks a lot :slight_smile:

On setting it up i get this erorr-
16-09-11 15:53:05 homeassistant.bootstrap: Invalid config for [sensor.template]: [sensor_class] is an invalid option for [sensor.template]. Check: sensor.template->sensors->livingroom->sensor_class.