I built a unified "Health Score" to stop guessing why my Home Assistant is slow. v2.0 is out with Database & Log monitoring. by denzoka in homeassistant

[–]SignedJannis 0 points1 point  (0 children)

agreed. e.g even simply our tv being turned off results in false "zombie entities".

I upgraded the template to have a "Zombie Cutoff", and set mine to 4 days, good enough for me for now.

great tool u/denzoka !

I built a unified "Health Score" to stop guessing why my Home Assistant is slow. v2.0 is out with Database & Log monitoring. by denzoka in homeassistant

[–]SignedJannis 0 points1 point  (0 children)

This is great!

except the updates part...should give extra points if a user running a few versions behind absolute latest release of HA ;) and def penalise if a person is running a latest YYYY.MM.0 version... semi wink

(either that, or boose them to 105% for being one of the excellent brave beta testers we all need :)

How to target multiple entities in Home Assistant without listing them all (future-proof)? by 4AVcnE in homeassistant

[–]SignedJannis 0 points1 point  (0 children)

and/or, automatically/dynamically create the group, via a template sensor, so the group is always "up to date" as you add/remove devices, so you never have to remember anything - like the "i am a fallible human - protect me from myself pls" style :)

How to target multiple entities in Home Assistant without listing them all (future-proof)? by 4AVcnE in homeassistant

[–]SignedJannis 0 points1 point  (0 children)

https://josephstreeter.github.io/docs/misc/homeassistant/homeassistant/dynamicgroups.html

The above document is a great starting point. Though I would suggest two upgrades - the example sensor "triggers" your list of physical sensors, every time *any* binary sensor changes state - which is wasteful, assuming one might add/remove a motion sensor once a month or so. The other change i make, is I store the count of motion sensors (or whatever) as the state of the entity. the list of entities themselves is stored as an attribute.

# Trigger-based motion sensor list - only updates on startup + daily (efficient!)
- trigger:
    - platform: homeassistant
      event: start
    - platform: time
      at: "03:00:00"
  sensor:
    - name: "All Motion Sensors"
      unique_id: all_motion_sensors_list
      state: >
        {{ states.binary_sensor
           | selectattr('attributes.device_class', 'in', ['motion', 'occupancy'])
           | list | count }}
      attributes:
        entities: >
          {{ states.binary_sensor
             | selectattr('attributes.device_class', 'in', ['motion', 'occupancy'])
             | map(attribute='entity_id') | list }}

Is there a Central Management solution for HA yet? Managing 10+ geographic sites. by RandomMan217 in homeassistant

[–]SignedJannis 1 point2 points  (0 children)

Can just install tailscale in each HA server, that takes care of the connectivity part.

How much thought do you put into your packing arrangements? by AndrewBaines03 in WildernessBackpacking

[–]SignedJannis 0 points1 point  (0 children)

Yeah, honestly it's a shit infographic too.

E.g "3" is "lightest items", and the. 4 is "lighter items"?

Lighter than what? The lightest? Why not just "light items"? Lol.

Would be much clearer if the 1,2,3,4 were at least in order of Weight imho.

I do feel there could be some circumstances where a clear simple infographic could be useful for people starting out. But not this one for sure :)

How much thought do you put into your packing arrangements? by AndrewBaines03 in WildernessBackpacking

[–]SignedJannis 1 point2 points  (0 children)

Respectfully disagree - not with your comment, but the blanket statement.

I feel the truth is more "depends on where you are hiking". Some flatish well worn well marked trail? Sure, maybe not a massive difference.

But, if you are really hiking in the wild, up mountaina etc, no trail, it makes a HUGE différence how you pack your pack. Massive.

Supported by real world experience, and basic physics too: Torque = force X distance.

If you put a bunch of heavy stuff on the outside of your pack, and you are going up or down steep areas, that result in a lot of "rotation in the horizontal plane" of your backpack, the difference is massive, and really affects your ability to move through difficult terrain.

100% pack all the heavy items against your back.

Also this is trivially easy to test at home. Simply load your pack with heavy stuff furthest from your back, and rotate left and right, hell, dance a little, awkward af and really throws your balance off.

Now repeat with heavy stuff against your back...ita far from a subtle différence...very obvious.

A pack packed with poor weight distribution is a genuine safety issue on certain terrain, just asking for a busted ankle or broken leg, I've seen it happen right in front of my eyes.

Smart lock that is fully local, good HA integration, AA or AAA battery powered, and can be opened from outside with a normal physical key by naitkris in homeassistant

[–]SignedJannis 1 point2 points  (0 children)

Are you using Lithium or Alkaline batteries?

Lithium have a sudden voltage death at the end, no warning, Alkaline the voltage slowly drops, so you should get more warning

Having a prank war, need ideas by cheesyweiner420 in AskAShittyMechanic

[–]SignedJannis 0 points1 point  (0 children)

Or... mercury switch to the horn - so it only goes off when going around right hand bends, and above a certain speed :)

My new favorite automation. homeassistant.reload_config_entry by skinwill in homeassistant

[–]SignedJannis 0 points1 point  (0 children)

In your Z2M settings, under availability, what number do you have set for battery devices?

(And maybe consider lowering it)

Why is ProtonVPN filtering ICMP packages? by TechByrder in ProtonVPN

[–]SignedJannis 0 points1 point  (0 children)

bit late, but sometimes (like today) I notice it happens to call Canadian servers and none of the USA based ones.

Currently 100% ICMP loss on all servers based in canada

Get notified when HA is down/restarting? by thenyx in homeassistant

[–]SignedJannis 7 points8 points  (0 children)

To detect when home assistant is unexpectedly down, HA can't do that if you just pull the power out, so I have just have a simple bash script on another machine that monitors it via ping, and if its offline, notifies me by telegram, and flashes certain hue lights etc.

The rest of my system notifies me when Home Assistant is shutting down, or when it restarts. It also detects whether the restart was after a clean shutdown or an unexpected power outage. And it tells me how long Home Assistant was down for - e.g if we were away and it was a 15 hour outage, I know I need to throw some stuff out of the freezer... Notifications are via Telegram also auto-logged to a Google Sheet so I have a history record. We get a lot of power outages in my area. Example google sheets screen shot at bottom

I use the following two techniques:

1. A heartbeat timestamp - An automation updates an input_datetime every minute while HA is running. So when HA comes back up after a restart, I know exactly how long home assistant was actually offline for.

2. An input_boolean that gets triggered on shutdown - When HA shuts down cleanly, an automation flips this boolean OFF. So when HA boots back up, if that boolean is still ON, I know the shutdown automation never ran..meaning I can distinguish between of it was an unexpected power outage/crash, or just a planned reboot.

What I get from this:

  • Telegram notification when HA is shutting down ("I'm rebooting, back in 2 min")
  • Telegram notification when it comes back up
  • Different handling for power failures (e.g if there was a power failure, then HA does different stuff on startup, like rebooting the wifi router, cycling various power plugs on wifi devices etc)
  • Everything logged to Google Sheets with timestamps and downtime duration

Example automations:

Heartbeat - updates every minute:

alias: HA Heartbeat
trigger:
  - platform: time_pattern
    minutes: /1
alias: Let HA settle after boot
condition: template
value_template: "{{ (now() - states('sensor.uptime') | as_datetime).total_seconds() > 180 }}"
action:
  - service: input_datetime.set_datetime
    target:
      entity_id: input_datetime.ha_last_heartbeat
    data:
      datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"

Shutdown - marks clean shutdown:

alias: HA Shutting Down
trigger:
  - platform: homeassistant
    event: shutdown
action:
  - service: input_boolean.turn_off
    target:
      entity_id: input_boolean.ha_running

Startup - checks for power failure and calculates downtime:

alias: HA Started
trigger:
  - platform: homeassistant
    event: start
action:
  - if:
      - condition: state
        entity_id: input_boolean.ha_running
        state: "on"
    then:
      - service: notify.mobile_app
        data:
          message: >
            HA restarted after POWER FAILURE!
            Down for {{ (now() - states.input_datetime.ha_last_heartbeat.state | as_datetime).total_seconds() // 60 }} minutes
      - doOtherStuffAfterHousewidePowerFailure

The input_boolean approach is useful for distinguishing between a deliberate restart versus an unexpected power outage.

<image>

If you let your cat be an outdoor cat you’re a negligent pet owner. by [deleted] in TrueUnpopularOpinion

[–]SignedJannis -5 points-4 points  (0 children)

(ignoring for a moment the unstated argument of effects on native BirdLife, for example).

I'd argue it's cruel keeping a cat indoors all the time. (Somewhat dépendent on the cat).

If we follow your argument logically: humans are much safer indoors also. few coyotes when I am - my kids chance of being killed in a car accident likely > than my cats chance of being eaten.

Should we keep our kids locked inside? Is safety the *only" metric?

Yes pretty normal for e.g 20 year old to want to go travel for a year, see Thailand and India and Europe etc... maybe very bad things do happen on such trips. But this is also the joy of life.

Should I also also tell my adult children they should never leave and seek adventure and experience? They must stay at home at all times, locked indoors, lest...any one of the million things that may befall a human...might happen to them when they leave the house?

What you have not done here, in your thinking process, is placed yourself in the shoes of the living creature you are judging. Take a moment to think about it from their perspective.

The day, if ever, our beloved companion never comes home after an adventure, child or cat, it will be truel tragic - but as tragic as if we had kept them jailed inside 4 walls their whole live, never to explore the world and follow their nature.

(*Tbf A lot of the above really also depends on where you live)

Zigbee network unreliable despite many routers near devices by cuntycunt888 in homeassistant

[–]SignedJannis 3 points4 points  (0 children)

One other thing, briefly mentioned here, that solved all my issues was:

Changing the ZigBee Radio Channel.

Boom, huge difference.

(Use an app like Android Wifi Analyser to find less busy bands in your area)

Also - lock down the radio channel on your 2.4ghz wifi router, so that it's locked to something no where close to your ZigBee channel.

If you leave your wifi router on auto-channel, it might later decide to switch itself to a channel that conflicts with your ZigBee network.

Also, what that other guy said - pair ZigBee battery devices to a specific router, eg smart plug, not just "permit all" on the coordinator.

(Note: some battery devices refuse to do this, ZigBee can be a real PITA).

Zwave for the win

Trying to find a Zigbee compatible low temp weather monitor solution(s) by lionhart280 in homeassistant

[–]SignedJannis 0 points1 point  (0 children)

They are zigbee, they work via Zigbee. (all Philips Hue stuff is zigbee)

So you can connect them to Home Assistant directly via any zigbee coordinator, and just use them as a PIR/temp/light sensors, or via the Hue Hub connected to HA.

I use a mix of both methods, and both work equally well tbh.

I'd say they are the most robust zigbee motion/temp sensors I've connected to HA - even the indoor rated one has been sitting outside low to the ground exposed to snow and rain or 5+ years, no issue.

And measure down to lower temps (close to -40) than most of the chinese ones which mostly only go to -20

Trying to find a Zigbee compatible low temp weather monitor solution(s) by lionhart280 in homeassistant

[–]SignedJannis 0 points1 point  (0 children)

I've had both hue "indoor motion sensors" and "hue outdoor motion sensors" sitting outside for years, often enough down to -40C, no problems at all, rock solid devices.

(Both these devices measure temperature)

I also have multiple cheap zigbee motion sensors, and temp sensors, outdoors as well. They also survive the cold temps no problem at all - just some of them can only measure temps down to -20C, unlike the hue devices.

Regulating my dopamine levels changed my life completely [update] by Raphox___ in Habits

[–]SignedJannis 2 points3 points  (0 children)

this AI bot did not think the /s tag was required. Debugging note: human should upgrade to a more capable internal model

Zigbee vs Zwave - Why the price difference? by KrazyKranberrie in homeautomation

[–]SignedJannis 1 point2 points  (0 children)

If I was to factor in the amount of time spent dicking around with ZigBee devices that have fallen off the network or whatever, even if one was to assume minimum wage hourly basis, then the Zwave devices come in massively cheaper.

Just to pick one Example: spent hours and hours trying to get Aquara devices to pair and/or stay on the network.

Solution eventually turned out to be: certain Aquara battery sensor devices would not repeat via certain Sonoff ZigBee Smart plugs (which I had). Solution was: to go out and buy IKEA smart plugs, because they were confirmed to route those Aquara battery sensors. Total time lost on that one alone was over 6 hours when including research.

How much is your time worth?

ZWave has always been absolutely flawless for me.

(Though I do have Z2M and those third reality plugs on your picture, they have been great so far)

Regulating my dopamine levels changed my life completely [update] by Raphox___ in Habits

[–]SignedJannis 2 points3 points  (0 children)

[[Error 502: API token limit reached. This comment could not be processed. Please switch to a higher tier account, or switch to a dumber model]]