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