h4de5 / home-assistant-vimar

VIMAR by-me integration into home-assistant.io
GNU General Public License v3.0
43 stars 6 forks source link

Relay recognition #61

Open italianpodge opened 1 year ago

italianpodge commented 1 year ago

First of all - thankyou so much for this integration. The Vimar app is very slow and the calls this makes direct to the webserver is a great feature.

It's possibly a strangeness of the way I have programmed my devices but all of the relays are appearing in Home Assistant as lights. I have some relays that activate solanoids for water valves and the garbage disposal which is a bus relay controlled plug socket. I would prefer these not to appear as lights if possible even though I can give them a friendly name.

The integration does recognise that the device below is configured as a "PRESA" in the Vimar object name which in Italian means socket and is correct, but then it has a Vimar device type of light which is incorrect.

Vimar object ID 7540 Vimar object name PRESA 1 CAMERA 02 Vimar object type CH_Main_Automation Vimar device type light Vimar icon mdi:ceiling-light Vimar room friendly name Camera 02 Status ID 5663 Status value 0 Status range min=0|max=1

All of this would actually work for me fine if I could change the "Show as" device type in HA, the shutter devices have the option to be changed to "door" or "window" etc. That option is missing for the lights, if I look at a smart plug I added as a toggle they can also be changed to different objects in this way.

Screenshots Config in ET Prof image

Config in HA image TP Link HS110 setup as a toggle which allows the plug to be assigned a device type image

Once again thanks so much for this it's really brought my setup from the dark ages into a much more usable solution without going to the cloud which I would like to avoid.