Home Assistant Dad Jokes

Sorry!

  1. What’s a Home Assistant user’s pickup line?
    “You must be a binary sensor, 'cause you just triggered something in me.”

  2. My Home Assistant works perfectly…
    Right up until someone asks me to show them.

  3. I set a reminder in Home Assistant to fix my automations.
    It now reminds me… that I haven’t fixed them.

  4. My kids asked if Home Assistant was spying on them.
    I said no…
    But then the camera turned and blinked. Twice.

  5. My doorbell rings. Home Assistant tells me:
    “Someone’s at the door.”
    I look.
    It’s me… holding my phone.

  6. My smoke alarm is integrated into Home Assistant.
    Now when I burn dinner, it automatically dims the lights for “romantic effect.”

  7. I have a button that says “Don’t press.”
    My kids pressed it.
    Now the vacuum won’t stop chasing the cat.

  8. My daughter asked, “Can Home Assistant tuck me in?”
    I said, “No. But it’ll dim the lights, play lullabies, and turn off when I senses you’re asleep.”
    She said, “So… basically yes.”

  9. I asked my son if he wanted to help set up a scene.
    He built a LEGO castle instead.
    So I triggered “Impressed Dad Mode.”

  10. Therapist: “What’s bothering you today?”
    Me: “Line 5657 in my automation.yaml file.”

Feel free to add your ones!

Blacky :grinning:

7 Likes

What’s next? Dad dancing? :grin:

Haha… don’t give me ideas! :rofl:
Humour’s always welcome here… share your best HA jokes and memes! Let’s keep the coffee-break laughs and dad jokes flowing. It’s good for the soul!

Blacky :grinning:

In case you didn’t know about this thread, it’s my fav. Automation falling short

O Thanks! I haven’t seen it. That is a great post!.. don’t post memes here let’s keep it on that post Automation falling short. Maybe we close this post an merge it to that post. Not sure if dad jokes should be posted there though :thinking:

I will PM @Spiro

Thanks for the heads up

Pet Revenge Automation

alias: Cat Steps On Switch
trigger:
  - platform: state
    entity_id: binary_sensor.cat_on_smart_switch
    to: 'on'
action:
  - service: media_player.play_media
    data:
      entity_id: media_player.living_room
      media_content_id: "meow.mp3"
  - delay: "00:00:02"
  - service: vacuum.start

Blacky :grinning:

1 Like

Or I do this rest sensor (Tom has a better version below…)

Summary
- resource: https://icanhazdadjoke.com/
  method: GET
  headers:
    User-Agent: "Home Assistant/{{ states('sensor.current_version') }}"
    Accept: application/json
  scan_interval: 86400
  sensor:
    name: "joke"
    unique_id: ff4a7f71-6d09-42e9-9173-818c42af77e4
    value_template: "{{ value_json.joke }}"

SEE Tom’s post below…

and everytime I get one to announce front door motion, I refresh the sensor manually which saves load on the resource.

That can error out if the joke is too long (> 255 chars). I use this:

- resource: https://icanhazdadjoke.com/
  method: GET
  headers:
    User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
    Accept: application/json
  scan_interval: 7200
  sensor:
    name: "Joke"
    unique_id: 68cdc9f0-0f9e-4d8a-a205-b9b45abd21a4
    value_template: >
      {% if value_json is defined and value_json.joke|length <= 255 %}
        {{ value_json.joke }}
      {% else %}
        {{ "Your mum" }}
      {% endif %}

And if you want an automation to reload instead of displaying “Your mum” as the joke:

- id: c684e361-76a5-46dc-bacb-8af3b3bc046e
  alias: 'Reload Joke'
  triggers:
  - trigger: state
    entity_id: sensor.joke
    to: 'Your mum'
  actions:
  - action: notify.telegram_system_log
    data:
      title: '😜 <b>Joke Reloaded</b>'
      message: >
        The dad joke was too long (> 255 char) and has been reloaded. 
  - action: homeassistant.update_entity
    entity_id: sensor.joke
  - delay:
      minutes: 3
1 Like

That’s why it drops the joke occasionally. Well it’s fixed now…

Really I should just use an attribute. And will when I have less pressing things to do.

EdIt: no time like the present:

- resource: https://icanhazdadjoke.com/
  method: GET
  headers:
    User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
    Accept: application/json
  scan_interval: 3600
  sensor:
    name: "Joke"
    unique_id: 68cdc9f0-0f9e-4d8a-a205-b9b45abd21a4
    value_template: "{{ "OK" if value_json is defined else "unknown" }}"
    json_attributes:
     - "joke"

Markdown card:

type: markdown
content: >
  {% if is_state('sensor.joke','OK') %}
    {{ state_attr('sensor.joke','joke') }}
  {% else %}
    Not available at this time.
  {% endif %}
title: Dad Joke
1 Like

Actually, I built an updated integration of the original jokes integration (as the repo owner seemed to be ignoring it) to address the 255 character limitation, but also to allow you to easily configure how often you wanted it to be refreshed: loryanstrant/ha-jokes: An integration to randomly display dad jokes from https://icanhazdadjoke.com/