Auto-assign areas to Tasmota devices in Home Assistant (parse from device name) #24810
MarkAtwood
started this conversation in
Show and tell
Replies: 1 comment
-
|
I love it! Finally a workaround that doesn't need a change in Tasmota ;-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
Tasmota doesn't support
suggested_areain MQTT discovery payloads, so Home Assistant can't automatically assign your devices to rooms. You have to manually set the area for every single device in the HA UI.The Solution
I built a custom integration that parses the area from your device names: MQTT Device Sync
How It Works
Name your Tasmota devices with a delimiter pattern:
Kitchen / Coffee Maker→ Area: Kitchen, Name: Coffee MakerGarage - Door Sensor→ Area: Garage, Name: Door SensorThe integration extracts the area and applies it to the HA device registry automatically.
Features
/and-)Installation
Available via HACS (pending approval) or manual install. Copy
custom_components/mqtt_device_syncto your HA config directory.Configuration
Set your
DeviceNamein Tasmota with the pattern, then in the HA integration options:No more manually assigning areas to dozens of Tasmota devices!
Beta Was this translation helpful? Give feedback.
All reactions