hatasmota icon indicating copy to clipboard operation
hatasmota copied to clipboard

Add new functions to start firmware updates

Open FaserF opened this issue 5 months ago • 0 comments

This PR is to extend the functionality for Homeassistant to detect available tasmota firmware updates and start them remotly. See #151 and

The HA Integration also needed to be extended, this work is being done here for a future PR to the core repo: https://github.com/FaserF/core/tree/new-feat-tasmota-firmware-update

Please note, that I am writing my own HA integrations, but never did a firmware update check and update sensor before. I would be happy about someone reviewing my code. I was also until now not fully able to test the code, since I always had used custom_components and dont know how to test updated official integrations until now. Right now the code seems to fail:

2024-09-06 15:55:15.321 ERROR (MainThread) [homeassistant.components.update] Error while setting up tasmota_fw_test platform for update
AttributeError: module 'custom_components.tasmota_fw_test.update' has no attribute 'async_setup_entry'
2024-09-06 15:55:15.323 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Tasmota for tasmota_fw_test
File "/config/custom_components/tasmota_fw_test/__init__.py", line 86, in async_setup_entry

To test the functionality I have created a new repository: https://github.com/FaserF/ha-tasmota-fwupdate The new pip module needs to be installed manually:

pip3 install git+https://github.com/FaserF/hatasmota.git@new-feat-firmware-update

More informations about what the final goal should be: https://community.home-assistant.io/t/support-firmware-update-in-tasmota-integration/410167 https://github.com/arendst/Tasmota/discussions/15480

FaserF avatar Sep 06 '24 13:09 FaserF