Version 0.45
Home Assistant MQTT Discovery!
This release adds an optional Home Assistant MQTT discovery process. A simply click of a button in the web interface and a new Home Assistant device with all the related entities will be automatically created in Home Assistant... no YAML, no editing of files or any other configuration changes in Home Assistant needed!
Even if you have already manually created the MQTT entities in Home Assistant, you can use this feature to create a new device integration under MQTT in Home Assistant. This will create new versions of the existing sensors, but will also add a couple of new ones (IP and MAC addresses). You can either keep your existing entities and have both available, or remove your existing entities.
This is still considered a BETA feature at this point as it has not been widely tested. Please review the new information under the MQTT and Home Assistant topic in the wiki for prerequisites and information on how to use this new feature.
Other Changes and Fixes
- AP Hotspot no longer continues broadcasting after wifi is joined. (fixes Issue #16)
- Field sizes for MQTT user name and password increased to 64 characters. (fixes Issue #22)
- MQTT topics now include the Parking Assistant IP and MAC addresses. See MQTT section of Wiki.
- Car detection changed from a sensor to a binary_sensor when using Discovery.
- Sensors.yaml in the Examples folder updated with both the binary sensor change and new MQTT topics.
Breaking Changes
- If moving from manually created MQTT entites to the new Home Assistant MQTT Discovery, the original car detection/presence entity changes from a regular sensor to a binary sensor. You may need to update any scripts, automations or dashboard cards accordingly.
If this is your first install, please read the initial installation and first time setup sections of the wiki
This will help prevent any unforeseen issues. The rest of the wiki describes how to setup and use the system. I welcome questions, comments or recommended improvements, but please post those in the discussion area or under the comments section of the blog article linked above or in the YouTube video for this project. Please reserve the issues section of this repo for true bugs or other problems with the firmware.
Upgrading a previous version
IMPORTANT: If you are upgrading from a previous version of the firmware prior to 0.41, it is highly recommended that you upgrade to v0.41 first and do a full reset/onboading before upgrading to this version due to changes due to changes in how data is stored in flash memory. See the release notes for v0.41 for more information.
There have been a few reports that when upgrading to a new release, wifi information or other settings were lost. If you are upgrading from an earlier version and find the system does not respond after the restart, check for the initial broadcasting hotspot "ESP_ParkingAsst". If you see it, you must rejoin the system to your wifi and setup the system again. This should not occur since only the sketch is being uploaded and I have been unable to duplicate the issue. But apparently the upgrade impacts the flash memory with some boards.
It is always recommended to note/copy your current settings, such as parking zone distances, before performing any upgrade in the unlikely event that you do have to setup your system again.
You may apply this upgrade via the web application by just downloading the .bin file. See the wiki article Performing Updates and Upgrades for step-by-step instructions. Your settings and options should be maintained when upgrading. See the new troubleshooting section of the wiki if you have problems with the upgrade.