Skip to content

Instantly share code, notes, and snippets.

binary_sensor:
- platform: template
sensors:
restart_required:
value_template: >-
{{
states.update |
selectattr('attributes.release_summary','eq','<ha-alert alert-type=\'error\'>Restart of Home Assistant required</ha-alert>') |
list | count
}}
mqtt:
- sensor:
- name: "Garden Birds"
state_topic: "birdpi/apprise"
json_attributes_topic: "birdpi/apprise"
value_template: "{{ value_json.Common_Name }}"
- type: custom:stack-in-card
cards:
- show_state: false
show_name: false
camera_view: auto
type: picture-entity
entity: image.bird_photo
- type: custom:mushroom-template-card
primary: >-
{{states.sensor.garden_birds.state}} | {{states.sensor.garden_birds.attributes.Time }}
@phillprice
phillprice / apprise-settings.json
Last active October 11, 2023 09:16
SHOW BIRD PI DETECTIONS IN HOME ASSISTANT
{
"Common_Name": "$comname",
"Scientific_Name": "$sciname",
"Confidence_Score": "$confidence",
"link": "$listenurl",
"Date": "$date",
"Time": "$time",
"Week": "$week",
"Latitude": "$latitude",
"Longitude": "$longitude",
@phillprice
phillprice / keybase.md
Last active November 9, 2021 18:50
keybase.md

phillpricedisney Phill Price London

Keybase proof

I hereby claim:

- id: '1529960481868'
alias: Blue Bin Remind in an hour
trigger:
- event_data:
actionName: BLUE_REMIND_LATER
event_type: ios.notification_action_fired
platform: event
condition: []
action:
- data:
@phillprice
phillprice / apidetails.js
Last active February 27, 2020 13:56
See more at phillprice.com
data = msg.payload
from = data.from
to = data.to
type = data.type
msg = {
'payload': {
'app_id': '[APP ID]',
'app_key': '[APP Secret]',
'darwin': 'false',
'train_status': 'passenger',
Verifying that +phillprice is my blockchain ID. https://onename.com/phillprice

Keybase proof

I hereby claim:

  • I am phillprice on github.
  • I am phillprice (https://keybase.io/phillprice) on keybase.
  • I have a public key whose fingerprint is B44C EB0C 49D0 4553 A94C 6F64 D333 7642 5125 0164

To claim this, I am signing this object: