mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 01:06:52 +01:00
m5core2: on_node to Home Assistant as a disabled example
randy_home's Meshtastic integration already gives HA every node.
This commit is contained in:
1 parent
ad2a00f674
commit
0f72e3e9bc
1 file changed
+16
@@ -168,6 +168,22 @@ meshtastic:
|
||||
- lvgl.label.update:
|
||||
id: lora_last
|
||||
text: !lambda 'return from_name + ": " + text;'
|
||||
# Example, off: randy_home's Meshtastic integration already gives HA every node. Without such
|
||||
# a node this sends each node update to HA, an automation with device_tracker.see maps them.
|
||||
# on_node:
|
||||
# - homeassistant.event:
|
||||
# event: esphome.meshtastic_node
|
||||
# data:
|
||||
# node: !lambda return node.id();
|
||||
# long_name: !lambda return node.long_name;
|
||||
# hops: !lambda 'return node.hops < 0 ? std::string() : to_string(node.hops);'
|
||||
# rssi: !lambda return meshtastic::num(node.rssi, 0);
|
||||
# latitude: !lambda return meshtastic::num(node.latitude, 7);
|
||||
# longitude: !lambda return meshtastic::num(node.longitude, 7);
|
||||
# altitude: !lambda return meshtastic::num(node.altitude, 0);
|
||||
# battery_level: !lambda return meshtastic::num(node.battery_level, 0);
|
||||
# voltage: !lambda return meshtastic::num(node.voltage, 2);
|
||||
# temperature: !lambda return meshtastic::num(node.temperature, 1);
|
||||
|
||||
globals:
|
||||
- id: lora_count
|
||||
|
||||
Reference in new issue
Block a user