sHedC / homeassistant-mastertherm

Home Assistant Mastertherm Component, to communicate and control heat pumps from Mastertherm
MIT License
6 stars 2 forks source link

update in homeassistant #44

Closed valentapat closed 1 year ago

valentapat commented 1 year ago

Is your feature request related to a problem? Please describe. Hello, please, how does a safe update work in homeassistant? I think "latest version". Can I overwrite files in /custom_component

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

sHedC commented 1 year ago

Hi @valentapat

I am not sure what you mean? if you mean what is the best way to keep this custom integration up to date safely I suggest using HACS it keeps a track of release and pre-released that I add.

Example current release is 0.2.0 but there is a 1.0.0-a0 available as a pre-release that allows certain switches and a thermostat that can be updated, HACs would track that.

Is this what you mean? As for just overwriting stuff you can if you have access to the file system home assistant doesn't block any of that?

valentapat commented 1 year ago

Hello, yes I need control switches according to the actual price of energy. Entity does not show update option.

I have access to the file system through adon File Editor. ( my standart hass run on pi3 )

My understanding is that you just need to override some files in own components? Please a detailed procedure how to do it? I am a beginner in HASS

sHedC commented 1 year ago

Hi,

This is interesting, can you detail out your system and use case I will be happy to work on that as an idea for you I have been looking for use cases to have more focus.

Ok so the Tag/ Release 1.0.0a0 now allows update of certain swtiches, its a pre-release so just install from HACS.

I would not recommend altering the plugin in your HASS setup especially if you are a beginner: Currently 1.0.0a0 allows turning on and off most switches available in the UI and allows setting of Ambient Temperature for Room thermostats if you have them (internal stat if you don't)

Sorry not sure I can provide details instructions on modifying the code I put, I am learning myself and its also not recommended to do that but maybe to contribute ideas and code to the main project.

sHedC commented 1 year ago

If you want to get into development I suggest starting here: https://hacs.xyz/docs/developer/start and here https://community.home-assistant.io/t/tutorial-for-creating-a-custom-component/204793. This is where I started but I am not a Home Assistant expert just focused on this integration for now.

valentapat commented 1 year ago

I don't really understand where the problem is. I have installed masterthemconnect via HACS, and then added integration in hass. The integration will not allow a new installation if it already exists. That's why I'm asking how to update from 0.2.0 to 1.0.0a0, safely without data loss - remove and reinstall? I need version 1.0.0a0 to control the switches, the current one doesn't allow it.

sHedC commented 1 year ago

Oh I understand now, sorry I thought you were trying to change the code directly.

Ok so in HACS, click on the Mastertherm integration so you get the information page. In the top right there are three dots, click this and select Redownload.

A window will pop up and there is an option to Show Beta Versions, enable that and wait you will then see the avaialble beta versions.

image

Please note that this version may deactivate some existing sensors as I did change some as we understood more about how the system is working.

Let me know if that works

valentapat commented 1 year ago

"three dots" ......, yes, that's correct, I apologize for the bluntness of a beginner. Super thank you very much. You can close the issue.

sHedC commented 1 year ago

Great glad it works, no problem you are always welcome to ask I am happy people are using it and really want to improve it. I think it was just language that confused me and I don't ever get upset with questions :)

valentapat commented 1 year ago

I report updated, and the switches work perfectly. good job, thank you very much once again

valentapat commented 1 year ago

Hi Richard, I tested and the result is: Car and winter season - no, Heating-cooling-car - I can't judge, I don't have it. HP Power and thermostat - perfect. Consider adding the same hot water thermostat.

sHedC commented 1 year ago

Hi,

Great I am tracking in the issues what I am working on hot water is on the list as an issue that is open.