* Revert "Revert "Add device based MQTT auto discovery (#31122)" (#33059)"
This reverts commit ba80f8b73ac22fbfdb328cfd6cdad475e7aa187e.
* Document `migrate_discovery` option
* Add note that unique_id is required for device based discovery
* Rework docs for different use of migrate_discovery option flag
* Follow up from code-review
* Re-using discovery_id is no longer required
* Follow up on review
* more follow up
* More corrections
* Add column
* typo
* Remove duplicate header
* Clearify json example
* changed abbreviation `cmps` and added abbreviation `p`
* Update source/_integrations/mqtt.markdown
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* More follow up actions
* Fix back ticks
* Remove redundant header and redundant origing documentation
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Improve the documentation on the accepted states on `state_topic` for MQTT entities
* FIx formatting
* Follow up on code review
* Color attribute explain formatting
* Use json example
* More follow up
* Add MQTT object_id option
* add object_id doc each entities type
* Spelling
* Update source/_docs/mqtt/discovery.markdown
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* add object_id doc each entities type
* add object_id doc each entities type
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Add action_topic and action_template parameters to configuration
* updated possible action_topic values to be more accurate
* update MQTT device tracker documentation to add custom payload to location mapping parameter
* update new parameter name
* revert MQTT climate changes that are submitted in separate PR
* support for payload_home, payload_not_home, and payload_custom
* fix grammar
* move optional fields to complete configuration example
* fix tabs
* ✏️ Tweak
* fix parameter type as designed
* change parameter types
* match formatting of original doc
* match formatting of original doc
* match formatting of original doc
* update docs based on code changes
* change parameter name for custom mapping payloads to other zones and improve description
* update complete configuration example to reflect parameter name change
* revert description for 'devices' and simplify explanation for 'payload_other_zones'
* fix qos parameter value in example
* remove 'payload_other_zones' per balloobs review
* final cleanup
* ✏️ Manual fix bad rebase
* ✏️ Whitespace
* ✏️ Whitespace
Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>