loopj / home-assistant-vantage

Home Assistant integration for Vantage InFusion home automation controllers.
MIT License
9 stars 4 forks source link

[MDR8RW101] load type brought into HA as a Light but should be a Switch #97

Closed ddetton closed 6 months ago

ddetton commented 11 months ago

System Health details

System Information

version core-2023.10.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.5
os_name Linux
os_version 6.1.45
arch x86_64
timezone America/Los_Angeles
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.33.0 Stage | running Available Repositories | 1382 Downloaded Repositories | 1
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | June 10, 2024 at 5:00 PM relayer_connected | true relayer_region | us-east-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | true remote_server | us-east-1-9.ui.nabu.casa certificate_status | ready can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 10.5 -- | -- update_channel | stable supervisor_version | supervisor-2023.10.1 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 30.8 GB disk_used | 8.0 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Studio Code Server (5.13.0), Home Assistant Google Drive Backup (0.111.1), Advanced SSH & Web Terminal (15.1.0), Node-RED (14.4.0), Samba share (10.0.2), Mosquitto broker (6.2.1), WeatherFlow to MQTT (3.1.6)
Dashboards dashboards | 2 -- | -- resources | 0 views | 1 mode | storage
Recorder oldest_recorder_run | October 25, 2023 at 8:54 PM -- | -- current_recorder_run | October 26, 2023 at 3:31 PM estimated_db_size | 252.95 MiB database_engine | sqlite database_version | 3.41.2

Checklist

Describe the issue

First, a big thank you for writing and sharing this integration! It works really well.

I am running an Infusion IC-24 Gen 1 controller with Design Center 3.9. I had several switched loads (relays) that were defined with a load type of [MDR8RW101] which must have been an option in an earlier version of Design Center because I can not figure out how set that load type in DC 3.9. The problem that I ran into was that the load was imported into HA as a light instead of a switch. The only reason I noticed this was because I also use the Homekit Bridge to bring my lights and switches into the Homekit ecosystem so that I can control them using Siri. I had a Ceiling Fan that had the load type set to [MDR8RW101] and when I asked Siri to turn the lights on, the ceiling fan went on. As a work around, I updated all of my loads that had load type set to [MDR8RW101] to High Voltage Relay. After reloading the Vantage program, I reloaded the custom component in HA and it obsolete the old version of the load and created a new load as a switch. Love that your component makes real time adjustments when the Vantage program changes.

I don't have an issue with this any more but just wanted to let you know, just in case you want to cover this edge case in your component.

mdr8rw101_issue.zip

Screenshot 2023-10-27 111547

Reproduction steps

  1. Load the attached design center file on the vantage controller.
  2. Add this integration to your HA instance.
  3. Backyard Waterfall load in Backyard area will be brought into HA as a light. It is a relay load so should be brought in as a switch. ...

Debug logs

I didn't have the logger integration active when I did this.

Diagnostics dump

No response

loopj commented 11 months ago

Thanks @ddetton, I'll add a special case for load type [MDR8RW101] in aiovantage (https://github.com/loopj/aiovantage/blob/main/src/aiovantage/config_client/models/load.py#L41). I'll track this issue over there.

loopj commented 11 months ago

Tracking in loopj/aiovantage#75

loopj commented 6 months ago

Fixed in aiovantage, will be in next release.

ddetton commented 6 months ago

Always good to see projects moving forward. Thanks for taking an active interest in making it better! It's been very reliable.