[MQTT] (Auto)Discovery implementation#5199
Conversation
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
…me other code improvements
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
…feature/MQTT-discovery
… max delay from 10 to 30 sec.
|
Some question to compare to my Node red Autodiscovery "Addon"
|
|
Not sure if Ton is already back home to reply... Ton has added both unit-of-measure selections and value type. So I guess it should be possible to define a dummy task as dimmer. Not sure though what HA then expects how such a device should react on dimming updated from HA, or send dimming updates back to HA. The latter may not be an insignificant issue as I know from Domoticz that it was quite hard to make sure a device would not start to 'oscillate' by constantly toggling a relay for example. Anyway, since this PR already has been merged, maybe best to open a new issue so we can have all information in 1 place. |
|
hmm '-' should be allowed yes https://www.home-assistant.io/integrations/mqtt/ and not sure i will update and test this addon anytime soon :( so no worry if answers take time, when/if i get time to test around and see any problems i will create a new issue then. right checked my documentation at: and for dimmers i used 2 devices on EE one MQTT import and one dummy device to tell HA what state it is right now, this as i could not get EE to understand messages from HA other than MQTT import or with run event command on device for Buttons and switches it triggers a event on the EE with the name of the variable |
Changes to the MQTT Controllers in the recent past include handling of the
For predefined Value types you can't, currently, but for devices that allow setting the Value type (per value), you can set the Value Type to
No, but I'll add that check in #5349 soon.
A dimmer is something that's rather hard to realize in ESPEasy right now, as we don't have a button that supports auto-repeat when being pressed. As mentioned in my reply to 1., you can send commands, and/or set value(s) to a task/value.
As long as the value is numeric, that will work fine (the core of ESPEasy is using numeric/float values). Thanks for the pointers given (again) 👍 |
Well, ESPEasy doesn't like the dash as part of a system, task or value name, it will in many situations be interpreted as a subtract operation 😮 |
|
@tonhuisman, HA MQTT discovery was changed. config topic: |
Hmm, we currently don't have a setting for that, so I'll have to add some more code related to MQTT Discovery 😅 |
|
That is only needed if you want to be able to select as a meter on the energy panel in HA. May be useful for all Wh, kWh, MWh, VArh, kVArh, MVArh meters. |
Resolves #977
Resolves #4982
And Forum request(s) (here)
Features:
homeassistant/status(listening for payloadonline).homeassistant/%devclass%/%unique_id%(/configwill be added by default)%unique_id%is a concatenation of the sysname, taskname and valuename, separated by an underscore_, and converted to lowercase./config(will use /config and online by default when left empty)binary_sensor, and Inversed Logic setting/$unit)TODO:
device classhandlers: lux, moisture, co2, weight, uv, uvindex, ir, distance, dust, aqi, nox, voltage, current, power, color, color temperature, (wind)direction, wind speed.sensorhandlers: dimmer, gps, analog. (may be implemented later)online)/config)