Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SETUP] configuration + Climate entity #3

Closed
felisida opened this issue Jun 8, 2020 · 71 comments
Closed

[SETUP] configuration + Climate entity #3

felisida opened this issue Jun 8, 2020 · 71 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@felisida
Copy link

felisida commented Jun 8, 2020

Describe the problem
I'm attaching the names of my components in By-me and the db
names.pdf
DB_Domotica Vimar 200507.db.zip

Check for some things first
unfortunately I'm not a code expert

Setup

  • Environment: macos
  • Home-Assistant Version: [v0.110.5]
@felisida felisida added the help wanted Extra attention is needed label Jun 8, 2020
@h4de5
Copy link
Owner

h4de5 commented Jun 8, 2020

Hello.
Can you have a look at your home-assistant.log (should be in the main configuration directory for home-assistant) for any error messages regarding to vimar_platform?

It seems you have renamed many of your devices - so the type assignement won't work. I'll try to get the correct type on some other way. thanks for the screenshot

@felisida
Copy link
Author

felisida commented Jun 8, 2020

the installer assigned names after installation, maybe someone changed it from the web server. if you need to manually change the name if you explain how to do it I'll try, in the meantime I attach all the configuration check with the errors
CONFIGURATION check.pdf

@felisida
Copy link
Author

felisida commented Jun 8, 2020

this is the error in main config
Schermata 2020-06-08 alle 10 25 11
Schermata 2020-06-08 alle 10 25 23

@h4de5
Copy link
Owner

h4de5 commented Jun 8, 2020

Hi update to the latest version.
if you downloaded it via git - you can simple make a "git pull" in that directory.
If you deployed using the zip downlod - remove the vimar_platform directory completely before extracting it there again.

@felisida
Copy link
Author

felisida commented Jun 8, 2020

thanks a lot, with this upgrade, I don't have more errors, but some warning that I will attach. unfortunately I can control only the shades, but not lights and switches
warning on check.docx

@h4de5
Copy link
Owner

h4de5 commented Jun 8, 2020

so you are saying you can control shades? therefore you are the first confirmed successful tester! Thats at least partly great news 🥳 Thank you for that!

The lights and switches are missing probably due to the different naming schema.

is it possible, that you don't have single light or switch actors setup on the webserver, but instead only rooms or groups without a numerical ID? this could be a reason why they are not listed. as for the integration I don't know yet, how to handle such rooms or groups within home-assistant.

I will have a look at that in the evening today - maybe I can add something, to show all entities in home-assitant and let you remove those you don't need.

@felisida
Copy link
Author

felisida commented Jun 8, 2020

thanks to you for this great job and your assistance, I am truly grateful to you. I hope that you can solve the issue with light and switch components, and even in a short time the multimedia system, I'm attaching the historical and entities
Schermata 2020-06-08 alle 13 17 46
Schermata 2020-06-08 alle 13 16 28

@h4de5
Copy link
Owner

h4de5 commented Jun 16, 2020

@felisida can you check if you have deactivated entities from the vimar platform in your home-assistant?

you can find them in the settings:

https://your-home-assistant-url/config/entities

and then activate all checkboxes in the search options like this:

image

I found out, that I am missing some light as well - specially the groups that includes a whole level. I can see them beeing added to the home-assistant, but for some reason they are not active. maybe your lights are listed there as well.

@felisida
Copy link
Author

Hi, in the pdf you will
I made the check that you requested.pdf
find the tests that I have performed

@h4de5
Copy link
Owner

h4de5 commented Jun 16, 2020

@felisida thank you that did help me. I just uploaded another fix.
The item "Cameretta" and "Studio" - are those groups like rooms? or Individual actors like lights?

best regards - thanks again for testing

@felisida
Copy link
Author

thanks to you for your work, these two are room names, but in reality they are also the names of the light could it be a problem? with this update now I see lights and controlled sockets, but they do not work, and some of the arrows of the shades are disabled, but even those enabled do not work, attached you will found some screenshot
new test.pdf

@h4de5
Copy link
Owner

h4de5 commented Jun 16, 2020

@felisida maybe this happends due to the same name of the room and the light. I updated the code again - so each entity get its own ID added to the name.
the errors in your list, do they happen during start up or only after you try to switch states?

in regards of the cover arrows: I tried to show the state of the cover within home-assistant. it may not work very well right now, because vimar does not give that information.

@felisida
Copy link
Author

perfect, great job! now I see shades, lights and sockets (like light), even tough starting HA I have this warning
Schermata 2020-06-16 alle 18 46 55
about the cover arrows, it's a good idea, but i think in order to do a fine job it have to use the limit switches of shades, because the result if it is partially or totally down it the same
Schermata 2020-06-16 alle 19 00 58
if you have the desire and time to program the climate and audio, I will be very happy to test the component, otherwise I can close the issue. thanks a lot lot lot

@h4de5
Copy link
Owner

h4de5 commented Jun 16, 2020

I see. I will revert that change for the covers then.
About the other types: climate i want to integrate next. at least reading. Setting is another story. Audio would be nice but i dont have anything to test it with. Same with rgb dimmers or other device types. The problem is, that i would need to analyze the requests from and to webserver while using the Web GUI. Maybe if i find any of those off the market or get access to a demo webserver. Then i will be able to add it.

@h4de5
Copy link
Owner

h4de5 commented Jun 16, 2020

btw. you should be able to click the greyed arrows in the covers as well. so even if it wrongly shows a partly closed cover as closed, you can still click the closing arrow.

@felisida
Copy link
Author

unfortunately in my case the grey arrow are disabled, about the other components I can help you if i send you some info?

@alfienero
Copy link

alfienero commented Jun 17, 2020

Dear Andi I write you here because me and Felice shared a similar path with your integration! I tried the last component update and I confirm you that I can see and control all the lights now!!! (including the two bedsides that are configured as light but in reality are like smart plugs)

Regarding the wishlist, beside climate control, for which I'm available if you need data/test, would be useful to have scenarios as well. I know that you can reproduce them directly in HA, but this could be a way to control alarm (I have an exit scenario that turns on alarm). Antoher useful thing would be to check in read only how much electricity I'm using in a specific moment. Unfortunately I don't have RGB lights and audio devices. Ilevia software controls climate through setpoints and climate modes.

@h4de5
Copy link
Owner

h4de5 commented Jun 17, 2020

@alfienero : the smart plugs - do they have different/additional settings that can be modifed through the WebUI? for all standard automation entities that do not follow the naming scheme , I fallback to lights - therefore they may show up in the wrong list. I am not yet sure, how I could enable customizing those entities. but ill leave that for later.

(reading) climate/thermostats should be in already (since yesterday) - Ill have a look at scenarios later today.

for adding other stuff: Ill try to make a video of how I am "debugging" the webserver in order to get the correct calls for the integration. It's not that complicated, but maybe cumbersome if you are not used to web developer tools. The only other way would be to have access to an installation that does have those devices.

@alfienero
Copy link

In reality are not "smart plugs" it's just a switch that turn on/off what's connected in the plug (bedside lamp). Even in webserver is configured as a light and no other info are available neither in webserver and HA.

Regarding climate I don't have new entities in vimar platform that measure temperatures, I've checked as you suggested even in disabled entitities. Maybe mine is a different model?

I'd be eager to support you in debugging my webserver if you teach me how to do or as an alternative to create you a temporary user to remotely access my webserver

@felisida
Copy link
Author

ABSOLUTELY, I can use a tutorial made by yourself, or give you a remotely access, but I should use an old pc win because I work with my pc

@h4de5
Copy link
Owner

h4de5 commented Jun 17, 2020

Thank you both for your support ;-)
I'll take some time for this later in the evening today.

@felisida
Copy link
Author

ABOUT CLIMATE, did you post a new versione because I my ha there isn't.

@h4de5
Copy link
Owner

h4de5 commented Jun 17, 2020

should be there. added it yesterday night. just fixed the idle state right now.

@felisida
Copy link
Author

with this update now in the configuration check, I don't have more this warning
Schermata 2020-06-16 alle 18 46 55
but I don't see the climate value

@h4de5
Copy link
Owner

h4de5 commented Jun 17, 2020

there should me much more messages from vimar - can lower the log level for vimar in your configuration.yaml:

logger:
  default: warning
  logs:
    custom_components.vimar_platform: info

@felisida
Copy link
Author

hi thi is the complete configuration check
2020-06-18 07:33:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-06-18 07:33:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for vimar_platform which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-06-18 07:33:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for smartthinq_sensors which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-06-18 07:33:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hpprinter which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-06-18 07:33:39 INFO (MainThread) [custom_components.vimar_platform.vimarlink] Vimar link initialized
2020-06-18 07:33:39 INFO (MainThread) [custom_components.vimar_platform] Vimar CA Certificate is already in place: rootCA.VIMAR.crt
2020-06-18 07:33:40 ERROR (MainThread) [homeassistant.components.yr.sensor] Retrying in 17 minutes: https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/?lat=44.63765843409103&lon=11.1798495054245&msl=21 returned 203
2020-06-18 07:33:40 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
2020-06-18 07:33:40 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 20 minutes
2020-06-18 07:33:42 INFO (SyncWorker_6) [custom_components.vimar_platform.vimarlink] Vimar login successfull
2020-06-18 07:33:42 INFO (SyncWorker_9) [custom_components.vimar_platform.vimarlink] getDevices started
2020-06-18 07:33:42 INFO (SyncWorker_9) [custom_components.vimar_platform.vimarlink] getDevices ends - found 50 devices
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found unknown device: others/-/-
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform.cover] Vimar Cover started!
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found a device with an uncommon naming schema: Cameretta
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found a device with an uncommon naming schema: Studio
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform.cover] Vimar Cover complete!
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform.light] Vimar Light started!
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found a device with an uncommon naming schema: Blindata
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found a device with an uncommon naming schema: Cameretta
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found a device with an uncommon naming schema: Scale
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform] Found a device with an uncommon naming schema: Studio
2020-06-18 07:33:42 INFO (MainThread) [custom_components.vimar_platform.light] Vimar Light complete!
2020-06-18 07:33:49 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up upnp platform for sensor
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/tasks.py", line 483, in wait_for
return fut.result()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/components/upnp/sensor.py", line 89, in async_setup_entry
device: Device = hass.data[DOMAIN]["devices"][udn]
KeyError: 'uuid:3ce75827-487e-486b-8f59-de39b048b762'
2020-06-18 07:34:00 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned
2020-06-18 07:34:00 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 17 minutes
2020-06-18 07:34:00 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/1.9/ returned 203
2020-06-18 07:34:00 ERROR (MainThread) [homeassistant.components.met.weather] Retrying in 20 minutes
2020-06-18 07:34:08 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry OnHub for upnp
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/config_entries.py", line 303, in async_unload
result = await component.async_unload_entry( # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/components/upnp/init.py", line 144, in async_unload_entry
del hass.data[DOMAIN]["devices"][udn]
KeyError: 'uuid:3ce75827-487e-486b-8f59-de39b048b762'

@felisida
Copy link
Author

good morning, before when I started HA, i found this situation for my cover
Schermata 2020-06-18 alle 08 03 53
but they was all closed, however after started my routine to go up the covers the status come back aligned

@h4de5
Copy link
Owner

h4de5 commented Jun 18, 2020

I only get the last direction from the cover and if it has just been stopped. Also as far as i can see, i can not say in HA that something is partly open.

You can try again the climates.

@alfienero
Copy link

I confirm that now I can read the measured temperature!! Thanks again for your impressive work!

@h4de5
Copy link
Owner

h4de5 commented Jun 28, 2020

@felisida @alfienero
can you enable the fancoil or give me a range of possible values for modalita_fancoil and velocita_fancoil ? it would be enough to enable it, turn it half way and full way up and check for the response like above.

@alfienero
Copy link

alfienero commented Jun 28, 2020 via email

@h4de5
Copy link
Owner

h4de5 commented Jun 29, 2020

just for an update - I tried to add proper support for the individual modes (on, off, auto, manual) in regards of our two different climate device types. I too added support for fancoil settings in the climate module.

@felisida
Copy link
Author

I'm sorry but my system don't have fan-coil, mine is a floor heating with heat pump

@h4de5
Copy link
Owner

h4de5 commented Jun 29, 2020

@felisida : I now tried to add external heating sources as well. Can you send me a screenshot of how this looks like on your home-assistant screen (just small screenshot for the docs).

@felisida
Copy link
Author

Schermata 2020-06-29 alle 10 53 09
this one?

@h4de5
Copy link
Owner

h4de5 commented Jun 29, 2020

yes. I hoped the heat pump option would show up as an extra button. what comes up if you select the 3 dots on top?

@felisida
Copy link
Author

I can't reach to sent you a screenshot

@felisida
Copy link
Author

when i select the 3 dots
Schermata 2020-06-29 alle 11 07 38
the heat pump at the moment is out of my domotic system,

@h4de5 h4de5 changed the title [SETUP] [SETUP] configuration + Climate entity Jun 29, 2020
@h4de5
Copy link
Owner

h4de5 commented Jun 29, 2020

ah ok. but at least the button is there :D
as far as I can see, this ticket can also be considered done, leaving only alarm and audio integration for the next goals.

again - if you see anything wrong, just reopen the issue and we will get it done.

I tried some things with the media player yesterday but may need some more time on that, because I can't test it properly. therefore I think I will first fix some issues on the home-assistant part and maybe add HACS support first.

@h4de5 h4de5 closed this as completed Jun 29, 2020
@felisida
Copy link
Author

hi handy I think there is a little bug in the climate project, this morning I tried to start the heating system, and all' work properly but I think there is a little issue In the translate because the correct description is "Riscaldamento" e non "Raffreddamento"
Schermata 2020-09-28 alle 11 23 29

@felisida
Copy link
Author

too in this condition the command was send properly but the correct label is "Raffreddamento"
Schermata 2020-09-28 alle 11 43 26

@h4de5
Copy link
Owner

h4de5 commented Sep 28, 2020

@felisida the translation comes directly from the home-assistant project. I only change the states.
I recently changed around some of the states, just to find out, that there seems to exist at least 3 different climate devices from vimar (see converstation in home-assistant forum). maybe the states are still not right.
I uploaded a new debug version for cliemates - if you set one thermostat to heating, one to cooling and one off, you should be able to see the startup states for each thermostate in the home-assistant log file.

If you say, that your vimar thermostate indeed changes to the requested states - (switches to cooling if pressed on cooling etc.) only than it must really a translation error - but that is very unlikely as it would affect all italian hass installations.

@felisida
Copy link
Author

it's strange! all work properly only the label is incorrect, but this doesn't affect the operation

@felisida
Copy link
Author

I UPDATET THE last repository, but the pairing is still incorrect

@h4de5
Copy link
Owner

h4de5 commented Sep 28, 2020

just checked the global language settings - as far as I can see, the translation seems fine:
https://github.com/home-assistant/frontend/blob/da0658f3d99109170137251e34b03bf21a6af478/translations/frontend/it.json#L34

very strange :
can you try to set the target temperatur above your current temperature to see if it says "Riscaldamento"?

@felisida
Copy link
Author

the translation is correct,
but the association in HA the behavior is reverse
Schermata 2020-09-28 alle 15 20 24
another fact, in cooling state if I make change in HA the label is always "inattivo" like as can't reach to read the state from web server, but only this one, on the contrary when I made change directly from web server I had with you see in the screenshot

@h4de5
Copy link
Owner

h4de5 commented Sep 28, 2020

@felisida please allow some time between changing the states in HA and getting the actual state from the webserver.
it is possible, that you switch to cooling, in one cycle, and need to wait two more cycles (around 8 seconds each) until HASS has updated its setting in the frontend.
i will have a look again later today - maybe I find another issue. the problem again, I am afraid I can only take guesses whats wrong.

the states has been changed due to a bug report from the community - https://community.home-assistant.io/t/vimar-integration-wip/202073/27

@felisida
Copy link
Author

hello i imagined time problems but i waited at least 1 minute and also did a page refresh to force but the status does not change

@h4de5 h4de5 reopened this Oct 5, 2020
@h4de5
Copy link
Owner

h4de5 commented Oct 14, 2020

@felisida I think I fixed the problem with the translation now.

@felisida
Copy link
Author

Perfect work fine!!!
Schermata 2020-10-20 alle 13 36 26

@h4de5
Copy link
Owner

h4de5 commented Nov 9, 2020

@felisida can I close this one? or is there still something to fix here?

@felisida
Copy link
Author

felisida commented Nov 9, 2020

yes you can close I wrote in my last post . thanks
Schermata 2020-11-09 alle 19 14 46

@felisida felisida closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants