Skip to content

Instantly share code, notes, and snippets.

View jeanrobertjs's full-sized avatar
🙂

Jean-Robert JS jeanrobertjs

🙂
View GitHub Profile
@jeanrobertjs
jeanrobertjs / offline-notification-for-sensors-with-last_seen.yaml
Created December 5, 2024 17:10 — forked from Mr-Groch/offline-notification-for-sensors-with-last_seen.yaml
Home Assistant Blueprint: Offline detection for Z2M devices with last_seen
blueprint:
name: Offline detection for Z2M devices with last_seen
description: Regularly test all sensors with 'last_seen' in name and 'timestamp' device_class
('last seen' Z2M sensors) to detect offline and if so execute an action.
domain: automation
input:
hours:
name: Hours not seen
description: Sensors not seen this amount of time are assumed to be offline.
default: 24
Abel 5 8
Abella 5 8
Abraham 20 12
Achille 12 5
Ada 4 12
Adelaide 16 12
Adele 24 12
Adeline 20 10
Adelphe 11 9
Adnette 4 12
@jeanrobertjs
jeanrobertjs / ESP32_wifi_signal_strength_test.ino
Last active May 7, 2020 00:24
For ESP32 Boards - Checks the signal strength of the wifi connection to the router via the RSSI value. (RSSI = Received Signal Strength Indication). When testing the signal strength, the closer the value to 0, the stronger the signal is.
// - For ESP32 Boards -
// Checks the signal strength of the wifi connection to the router via the RSSI value. (RSSI = Received Signal Strength Indication)
// When testing the signal strength, the closer the value to 0, the stronger the signal is.
#include "WiFi.h"
const char* ssid = "REPLACE_WITH_YOUR_SSID";
const char* password = "REPLACE_WITH_YOUR_PASSWORD";
void setup() {