The second issue is regarding area_id. In the core registry, every sensor etc. has an area_id. Most are “none”.
I have found that my mqtt climate and sensor entities cannot be defined via yaml.
I get the error message
Invalid config for [sensor.mqtt]: [area_id] is an invalid option for [sensor.mqtt]. Check: sensor.mqtt->area_id. (See ?, line ?).
Invalid config for [climate.mqtt]: [area_id] is an invalid option for [climate.mqtt]. Check: climate.mqtt->area_id. (See ?, line ?).
I don’t quite see why this should only apply to some types and why this cannot be set if the core registry has fields for it.
I had to change to logger level first.
Now it seems that logger.set_default_level ist suddenly not valid service anymore.
I created this automation via the UI and then moved it to a yaml file. Was this service deprecated for some reason?
Problem with the MQTT HVAC and sensor is, that I actually have no device for it. I am directly creating the climate and sensors.
The devices are TRVs which are BLE. And they are relayed via a Tasmota BLE to Wifi via MQTT service. So in HA I can only see the ESP32 board as a device and not the TRVs that are sending the data in the background.
I stumbled across this problem when I wanted to define area_id for my MQTT sensors and climate entities.
I seems that areas cannot be assigned to those directly, only via a device.
However, when I create an MQTT sensor (using yaml), how do I create an MQTT device? Because right now I have a bunch of sensors without a matching device.
The documentation is not clear to me on this. I need to define an MQTT device and then also link the sensor/climate to this device.
Could someone tell me how to do so?
A similar question was asked before, but no responses were posted.
I have no influence on the TRVs mqtt messages. So I cannot make the TRV send the device name in a matching syntax.
Is there no way of telling HA which device the entity belongs to? Essentially creating the device when I create the entity?