I have two one-year-old puppies. We had them ringing bells hanging from the doorknob when they needed to go outside, but we could not hear them in the other rooms. I found Paws2Go, (https://paws2go.pet/). We touched, it will play a short custom recording, flash some built-in LEDs, and send a notification to your cell phone. Nice, but not good enough!
I want to connect it to my Home Assistant Software. I thought this would be a major project but it was very easy. The first step was to install the “Passive BLE monitor” integration from the HACS. Once installed, click on “Configure” and make sure the option “Use active scan instead of passive scan (affects battery)” is Checked. Next touch the Paws2Go.
The BLE integration should now create a device with the name “085061777332476f0000000000000000”.
And the following sensors:
sensor.ble_uuid_085061777332476f0000000000000000
It will always be “085061777332476f0000000000000000”
sensor.ble_mac_085061777332476f0000000000000000
The MAC address will be different for every device.
This would only be used if there is more than one Paws2Go in the house.
sensor.ble_major_085061777332476f0000000000000000
This returns a number, My Paws2Go returns 51744 and it has not changed.
I am not sure if it is the same for all units or different for each unit.
sensor.ble_minor_085061777332476f0000000000000000
It is a counter, It will increase every time the Paws2Go is pressed.
This is the sensor we will be using for our Action.
sensor.ble_measured_power_085061777332476f0000000000000000
and sensor.ble_rssi_085061777332476f0000000000000000
are used to calculate the distances to the device. We will not need this.
Now we are ready to create an Action.
I gave the device “085061777332476f0000000000000000” the friendly name “Paws2go”
and “sensor.ble_minor_085061777332476f0000000000000000” the friendly name “Conuter”
I called my Action “Let’s Go Potty”
The trigger is “When Paws2go-Counter changes state or any attributes”
I then perform the following action:
{
Notifications: Send a notification via alexa_media_office_dot
Notifications: Send a notification via alexa_media_kitchen_dot
Repeat an action 3 times
Light ‘Turn on’ on Lamp_Office color_name: red brightness_pct: 25
Delay for 500 milliseconds
Light ‘Turn off’ on Lamp_Office
Light 'Turn on' on Lamp_Office color_name: blue brightness_pct: 50
Delay for 3:00
Light 'Turn off' on Lamp_Office
}
FYI: I use Lamp_Office color for different notifications;
Red = “Someone near the front door”
Blue = “Lets Go Potty”
Green = “My wife wants something!”
My YAML FILE:
alias: LetsGoPotty
description: LetsGoPotty
trigger:
- platform: state
entity_id:
- sensor.ble_minor_paws2go
condition: []
action:
- data:
message: Let's Go Potty
data:
type: tts
action: notify.alexa_media_man_cave_dot
- data:
message: Let's Go Potty
data:
type: tts
action: notify.alexa_media_kitchen_dot
- repeat:
count: 3
sequence:
- metadata: {}
data:
color_name: red
brightness_pct: 25
target:
device_id:
- 185098fa2210282d239200e37ea6b425
action: light.turn_on
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- metadata: {}
data: {}
target:
device_id:
- 185098fa2210282d239200e37ea6b425
action: light.turn_off
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- action: light.turn_on
metadata: {}
data:
rgb_color:
- 12
- 39
- 237
target:
device_id: 185098fa2210282d239200e37ea6b425
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- action: light.turn_off
metadata: {}
data: {}
target:
device_id: 185098fa2210282d239200e37ea6b425
mode: single