home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.14k stars 31.12k forks source link

Zwave migration tool still not working in 2022.3.7 #68751

Closed scstraus closed 2 years ago

scstraus commented 2 years ago

The problem

This was open in a previous issue #59119 , and though the thought was that it had been fixed, it still doesn't work at all for me. This is a major problem since this will be the last version which supports the old zwave integration and I was hoping there would at least be some hope for migration, because frankly I'm not sure I will ever be able to do this manually. I'm at the point where I just don't want to bother with this any more.

What version of Home Assistant Core has the issue?

2022.3.7

What was the last working version of Home Assistant Core?

Never worked.

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Zwave (deprecated)

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zwave/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Here are the logs:

zwave_js.legacy_zwave_migration.txt zwave.legacy_zwave_migration.txt

This is the text I got after the migration wizard finished (page was too long to screenshot)- it apparently only migrated 1 device.


Migrate devices and entities

Now it's time to migrate your devices and entities from the legacy Z-Wave integration to the Z-Wave JS integration, to make sure all your UI's and automations keep working.
Device Node 4 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 5 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 6 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 7 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 8 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 9 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 10 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 11 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 13 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 15 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 16 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 17 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 18 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 19 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 21 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 22 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 23 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 24 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 26 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 29 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 31 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 32 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 33 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 34 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 35 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 36 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 37 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 38 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 39 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 40 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 41 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 43 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready. Device Node 44 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready.

Below is a list of what will be migrated.
The following entities will not be migrated and might need manual adjustments to your config:

    Neo CoolCam Door/Window Detector Sensor (binary_sensor.guest_bedroom_window_2)
    Neo CoolCam Door/Window Detector Battery Level (sensor.neo_coolcam_door_window_detector_battery_level)
    Neo CoolCam Door/Window Detector Sensor (binary_sensor.guest_bedroom_window_1)
    Neo CoolCam Door/Window Detector Battery Level (sensor.neo_coolcam_door_window_detector_battery_level_2)
    LG Washing Machine (switch.lg_washing_machine_switch)
    Energy - LG Washing Machine Aeotec Smart Switch (sensor.lg_washing_machine_energy)
    Previous Reading - LG Washing Machine Aeotec Smart Switch (sensor.lg_washing_machine_previous_reading)
    Power - LG Washing Machine Aeotec Smart Switch (sensor.lg_washing_machine_power)
    Previous Reading 2 - LG Washing Machine Aeotec Smart Switch (sensor.lg_washing_machine_previous_reading_2)
    Voltage - LG Washing Machine Aeotec Smart Switch (sensor.lg_washing_machine_voltage)
    Current - LG Washing Machine Aeotec Smart Switch (sensor.lg_washing_machine_current)
    Previous Reading 3 - LG Washing Machine Aeotec Smart Switch (sensor.lg_washing_machine_previous_reading_3)
    Aeotec ZW096 Smart Switch 6 Water (sensor.aeotec_zw096_smart_switch_6_water)
    Moldy Conditions Under Sink (binary_sensor.popp_unknown_type_0004_id_0014_sensor)
    Mold Under Sink Temperature (sensor.popp_unknown_type_0004_id_0014_temperature)
    Mold Under Sink Humidity (sensor.popp_unknown_type_0004_id_0014_relative_humidity)
    Popp Unknown: type=0004, id=0014 Barometric Pressure (sensor.popp_unknown_type_0004_id_0014_barometric_pressure)
    Mold Under Sink Dew Point (sensor.popp_unknown_type_0004_id_0014_dew_point)
    Mold Under Sink Alarm Type (sensor.popp_unknown_type_0004_id_0014_alarm_type)
    Mold Under Sink Alarm (sensor.popp_unknown_type_0004_id_0014_alarm_level)
    Mold Under Sink Source Node ID (sensor.popp_unknown_type_0004_id_0014_sourcenodeid)
    Popp Unknown: type=0004, id=0014 Battery Level (sensor.popp_unknown_type_0004_id_0014_battery_level)
    Miele Washing Machine (switch.miele_washing_machine_switch)
    Energy - Miele Washing Machine Neo CoolCam Switch (sensor.miele_washing_machine_energy)
    Previous Reading - Miele Washing Machine Neo CoolCam Switch (sensor.miele_washing_machine_previous_reading)
    Power - Miele Washing Machine Neo CoolCam Switch (sensor.miele_washing_machine_power)
    Neo CoolCam Unknown: type=0200, id=1027 Previous Reading (sensor.neo_coolcam_unknown_type_0200_id_1027_previous_reading)
    Voltage - Miele Washing Machine Neo CoolCam Switch (sensor.miele_washing_machine_voltage)
    Current - Miele Washing Machine Neo CoolCam Switch (sensor.miele_washing_machine_current)
    Power Management - Miele Washing Machine Neo CoolCam Switch (sensor.miele_washing_machine_power_management)
    Front/Right Security Lights (switch.fibaro_system_fgs223_double_relay_switch)
    Back/Left Security Lights (switch.fibaro_system_fgs223_double_relay_switch_2)
    FIBARO System FGS223 Double Relay Energy (sensor.fibaro_system_fgs223_double_relay_energy_2)
    FIBARO System FGS223 Double Relay Energy (sensor.fibaro_system_fgs223_double_relay_energy)
    FIBARO System FGS223 Double Relay Previous Reading (sensor.fibaro_system_fgs223_double_relay_previous_reading)
    FIBARO System FGS223 Double Relay Interval (sensor.fibaro_system_fgs223_double_relay_interval)
    FIBARO System FGS223 Double Relay Power (sensor.fibaro_system_fgs223_double_relay_power)
    FIBARO System FGS223 Double Relay Power (sensor.fibaro_system_fgs223_double_relay_power_2)
    FIBARO System FGS223 Double Relay Previous Reading (sensor.fibaro_system_fgs223_double_relay_previous_reading_2)
    FIBARO System FGS223 Double Relay Interval (sensor.fibaro_system_fgs223_double_relay_interval_2)
    FIBARO System FGS223 Double Relay Power Management (sensor.fibaro_system_fgs223_double_relay_power_management)
    FIBARO System FGD212 Dimmer 2 Level (light.fibaro_system_fgd212_dimmer_2_level_2)
    FIBARO System FGD212 Dimmer 2 Level (light.fibaro_system_fgd212_dimmer_2_level)
    FIBARO System FGD212 Dimmer 2 Temperature (sensor.fibaro_system_fgd212_dimmer_2_temperature)
    FIBARO System FGD212 Dimmer 2 Power (sensor.fibaro_system_fgd212_dimmer_2_power_2)
    FIBARO System FGD212 Dimmer 2 Relative Humidity (sensor.fibaro_system_fgd212_dimmer_2_relative_humidity)
    FIBARO System FGD212 Dimmer 2 Energy (sensor.fibaro_system_fgd212_dimmer_2_energy)
    FIBARO System FGD212 Dimmer 2 Power (sensor.fibaro_system_fgd212_dimmer_2_power)
    FIBARO System FGD212 Dimmer 2 Previous Reading (sensor.fibaro_system_fgd212_dimmer_2_previous_reading)
    FIBARO System FGD212 Dimmer 2 Interval (sensor.fibaro_system_fgd212_dimmer_2_interval)
    FIBARO System FGD212 Dimmer 2 Heat (sensor.fibaro_system_fgd212_dimmer_2_heat)
    FIBARO System FGD212 Dimmer 2 Power Management (sensor.fibaro_system_fgd212_dimmer_2_power_management)
    Back Door (binary_sensor.back_door)
    Ecolink Door/Window Sensor Battery Level (sensor.ecolink_door_window_sensor_battery_level)
    Sebastian's Room Left Window (binary_sensor.sebastians_room_left_window)
    Ecolink Door/Window Sensor SourceNodeId (sensor.ecolink_door_window_sensor_sourcenodeid_2)
    Ecolink Door/Window Sensor Access Control (sensor.ecolink_door_window_sensor_access_control_2)
    Ecolink Door/Window Sensor Burglar (sensor.ecolink_door_window_sensor_burglar_2)
    Ecolink Door/Window Sensor Power Management (sensor.ecolink_door_window_sensor_power_management_2)
    Ecolink Door/Window Sensor Battery Level (sensor.ecolink_door_window_sensor_battery_level_2)
    Basement Flood Sensor (binary_sensor.basement_flood_sensor)
    Basement Temperature Sensor (sensor.basement_temperature_sensor)
    Basement Humidity Sensor (sensor.basement_relative_humidity)
    Hauppage Basement Flood Sensor Direction (sensor.philio_technology_corp_ph_pat02_eu_flood_multisensor_3in1_direction)
    Hauppage Basement Flood Sensor Alarm Type (sensor.philio_technology_corp_ph_pat02_eu_flood_multisensor_3in1_alarm_type_2)
    Hauppage Basement Flood Sensor Alarm Level (sensor.philio_technology_corp_ph_pat02_eu_flood_multisensor_3in1_alarm_level_2)
    Basement Flood Sensor (sensor.basement_flood_sensor)
    Hauppage Basement Flood Sensor Battery Level (sensor.philio_technology_corp_ph_pat02_eu_flood_multisensor_3in1_battery_level)
    Garbage Disposal (switch.garbage_disposal)
    Garbage Disposal Energy (sensor.garbage_disposal_energy)
    Garbage Disposal Previous Reading 2 (sensor.garbage_disposal_previous_reading_2)
    Garbage Disposal Power (sensor.garbage_disposal_power)
    Garbage disposal previous reading (sensor.garbage_disposal_previous_reading)
    Garbage Disposal Voltage (sensor.garbage_disposal_voltage)
    Garbage Disposal Current (sensor.garbage_disposal_current)
    Master Bedroom Window (binary_sensor.master_bedroom_window)
    Master Bedroom Window Sensor Battery Level (sensor.master_bedroom_window_sensor_battery_level)
    Closet Left Window (binary_sensor.ecolink_closet_left_window)
    Ecolink Door/Window Sensor Alarm Type (sensor.ecolink_door_window_sensor_alarm_type_5)
    Ecolink Door/Window Sensor Alarm Level (sensor.ecolink_door_window_sensor_alarm_level_5)
    Ecolink Door/Window Sensor SourceNodeId (sensor.ecolink_door_window_sensor_sourcenodeid_4)
    Ecolink Door/Window Sensor Access Control (sensor.ecolink_door_window_sensor_access_control_4)
    Ecolink Door/Window Sensor Burglar (sensor.ecolink_door_window_sensor_burglar_4)
    Ecolink Door/Window Sensor Power Management (sensor.ecolink_door_window_sensor_power_management_4)
    Ecolink Closet Left Window Battery Level (sensor.ecolink_closet_left_window_battery_level)
    Garage Door (binary_sensor.ecolink_garage_door)
    Ecolink Door/Window Sensor Alarm Type (sensor.ecolink_door_window_sensor_alarm_type_6)
    Ecolink Door/Window Sensor Alarm Level (sensor.ecolink_door_window_sensor_alarm_level_6)
    Ecolink Door/Window Sensor SourceNodeId (sensor.ecolink_door_window_sensor_sourcenodeid_5)
    Ecolink Door/Window Sensor Access Control (sensor.ecolink_door_window_sensor_access_control_5)
    Ecolink Door/Window Sensor Burglar (sensor.ecolink_door_window_sensor_burglar_5)
    Ecolink Door/Window Sensor Power Management (sensor.ecolink_door_window_sensor_power_management_5)
    Ecolink Garage Door Battery Level (sensor.ecolink_garage_door_battery_level)
    Server Room Flood Sensor (binary_sensor.server_room_flood_sensor)
    Server Room Temperature (sensor.server_room_temperature)
    Server Room Relative Humidity (sensor.server_room_relative_humidity)
    Philio Technology Corp PH-PAT02.eu Flood Multisensor 3in1 SourceNodeId (sensor.philio_technology_corp_ph_pat02_eu_flood_multisensor_3in1_sourcenodeid_2)
    Philio Technology Corp PH-PAT02.eu Flood Multisensor 3in1 Burglar (sensor.philio_technology_corp_ph_pat02_eu_flood_multisensor_3in1_burglar_2)
    Server Room Flood Sensor Battery Level (sensor.server_room_flood_sensor_battery_level)
    Basement Sliding Door (binary_sensor.basement_sliding_door)
    Ecolink Door/Window Sensor SourceNodeId (sensor.ecolink_door_window_sensor_sourcenodeid_6)
    Ecolink Door/Window Sensor Access Control (sensor.ecolink_door_window_sensor_access_control_6)
    Ecolink Door/Window Sensor Burglar (sensor.ecolink_door_window_sensor_burglar_6)
    Ecolink Door/Window Sensor Power Management (sensor.ecolink_door_window_sensor_power_management_6)
    Ecolink Basement Sliding Door Battery Level (sensor.ecolink_basement_sliding_door_battery_level)
    Master Bath Towel Warmer Switch (switch.master_bath_towel_warmer)
    Master Bath Towel Warmer Power (sensor.master_bath_towel_warmer_power)
    Master Bath Towel Warmer Energy (sensor.master_bath_towel_warmer_energy)
    Master Bath Towel Warmer Power 2 (sensor.master_bath_towel_warmer_power_2)
    FIBARO System FGWPE/F Wall Plug Gen5 Alarm Level (sensor.fibaro_system_fgwpe_f_wall_plug_gen5_alarm_level)
    Master Bath Towel Warmer Power Management (sensor.master_bath_towel_warmer_power_management)
    Sophie's Room Ceiling Window (binary_sensor.sophies_room_ceiling_window)
    Sophie's Room Ceiling Window Sensor Battery Level (sensor.sophies_room_ceiling_window_sensor_battery_level)
    Wet Under Sink (binary_sensor.kitchen_sink_flood_sensor)
    Temperature Under Kitchen Sink (sensor.kitchen_sink_flood_sensor_temperature)
    Kitchen Sink Flood Sensor Humidity (sensor.kitchen_sink_flood_sensor_humidity)
    Kitchen Sink Flood Sensor Battery Level (sensor.kitchen_sink_flood_sensor_battery_level)
    FIBARO System FGPB101 Button Alarm Type (sensor.fibaro_system_fgpb101_button_alarm_type_3)
    FIBARO System FGPB101 Button Alarm Level (sensor.fibaro_system_fgpb101_button_alarm_level_3)
    FIBARO System FGPB101 Button SourceNodeId (sensor.fibaro_system_fgpb101_button_sourcenodeid_3)
    FIBARO System FGPB101 Button Burglar (sensor.fibaro_system_fgpb101_button_burglar_3)
    FIBARO System FGPB101 Button Battery Level (sensor.fibaro_system_fgpb101_button_battery_level_2)
    FIBARO System FGPB101 Button General (sensor.fibaro_system_fgpb101_button_general_3)
    Heiman Technology Co. Ltd Combustible Gas Sensor HS1CG-Z Alarm Type (sensor.heiman_technology_co_ltd_combustible_gas_sensor_hs1cg_z_alarm_type)
    Heiman Technology Co. Ltd Combustible Gas Sensor HS1CG-Z Alarm Level (sensor.heiman_technology_co_ltd_combustible_gas_sensor_hs1cg_z_alarm_level)
    Kitchen Gas Sensor (sensor.kitchen_gas_sensor)
    HANK Electronics Ltd HKZW-SCN04 Scene Controller Battery Level (sensor.hank_electronics_ltd_hkzw_scn04_scene_controller_battery_level)
    Vision Security ZD2102 EU Door/Window Sensor Alarm Type (sensor.vision_security_zd2102_eu_door_window_sensor_alarm_type)
    Vision Security ZD2102 EU Door/Window Sensor Alarm Level (sensor.vision_security_zd2102_eu_door_window_sensor_alarm_level)
    Vision Security ZD2102 EU Door/Window Sensor Access Control (sensor.vision_security_zd2102_eu_door_window_sensor_access_control)
    Play Room Terrace Door (binary_sensor.play_room_terrace_door)
    Play Room Terrace Door Battery Level (sensor.play_room_terrace_door_battery_level)
    Office Door (binary_sensor.office_door)
    Office Door Battery (sensor.office_door_battery)
    Library Door (binary_sensor.library_door)
    Library Door Battery (sensor.library_door_battery)
    Front Door Lock (binary_sensor.front_door_lock)
    Front Door Lock Sensor Battery (sensor.front_door_lock_sensor_battery)
    2nd Floor Smoke Sensor (sensor.2nd_floor_smoke)
    2nd Floor Smoke Alarm Battery Level (sensor.2nd_floor_smoke_alarm_battery_level)
    Laundry Room Smoke Detector Alarm Type (sensor.laundry_room_smoke_detector_alarm_type)
    Laundry Room Smoke Detector Alarm Level (sensor.laundry_room_smoke_detector_alarm_level)
    Laundry Room Smoke Sensor (sensor.laundry_room_smoke)
    Laundry Room Smoke Detector Battery Level (sensor.laundry_room_smoke_detector_battery_level)
    Kitchen Smoke Sensor (sensor.kitchen_smoke_detector_smoke)
    Kitchen Smoke Detector Battery Level (sensor.kitchen_smoke_sensor_battery_level)
    Play Room Smoke (sensor.play_room_smoke)
    Play Room Smoke Detector Battery (sensor.play_room_smoke_detector_battery)
    Heiman Technology Co. Ltd Combustible Gas Sensor HS1CG-Z Alarm Type (sensor.heiman_technology_co_ltd_combustible_gas_sensor_hs1cg_z_alarm_type_2)
    Heiman Technology Co. Ltd Combustible Gas Sensor HS1CG-Z Alarm Level (sensor.heiman_technology_co_ltd_combustible_gas_sensor_hs1cg_z_alarm_level_2)
    Laundry Room Gas Sensor Source Node ID (sensor.laundry_room_gas_sensor_sourcenodeid)
    Sophies Room Smoke (sensor.sophies_room_smoke)
    Sophie's Room Smoke Detector Battery Level (sensor.sophies_room_smoke_detector_battery_level)
    Sebastian's Room Smoke Sensor (sensor.sebastians_room_smoke)
    Sebastian's Room Smoke Detector Battery Level (sensor.sebastians_room_smoke_detector_battery_level)
    Popp Unknown: type=0004, id=0014 Solar Radiation (sensor.popp_unknown_type_0004_id_0014_solar_radiation)

Devices that will be migrated:

    UFairy G.R. Tech GR105n Auto Valve

Entities that will be migrated:

    Back Yard Water Cutoff Valve (switch.back_yard_water_cutoff_valve)

Additional information

Here's what I get when I try to do the migration. Initially it told me about 30-40% of my devices couldn't be woken. I went around trying to wake them but it didn't do anything so I continued. But after I continued, it ended up not migrating really any of the details of even the devices it could wake over:

image.

I inserted the log I had from the integration above. and this is what I ended up with at the end.

image

Any chance to get this fixed?

probot-home-assistant[bot] commented 2 years ago

zwave documentation zwave source (message by IssueLinks)

scstraus commented 2 years ago

@MartinHjelmare Any chance I could get you to take a look?

MartinHjelmare commented 2 years ago

You need to wait until the devices have been interviewed by Z-Wave JS and are ready before completing the migration wizard. Non ready devices won't be migrated.

Sleeping devices won't be ready until they have woken up and the interview can be completed. You can normally manually wake a device up by pressing a button on the device. How to wake a device up is device specific.

scstraus commented 2 years ago

I tried pressing the buttons on the devices but it did nothing. Can I leave the migration tool running for like 24 hours and have it gather the details as devices are being interviewed?

MartinHjelmare commented 2 years ago

Yes, you should be able to leave the page open.

veilofsecurity commented 2 years ago

See my comment here, there does seem to be a documentation issue and many others frustrated by "failing" migrations: https://community.home-assistant.io/t/migrating-to-z-wave-js-broke-my-whole-z-wave-network-and-db-discussion-and-suggestions/376388/18?u=bs87

kernelpanic85 commented 2 years ago

I can confirm the same behavior for me as well migrating from Zwave 1.4 to Zwave JS. No nodes show as able to migrate. I had to restore backup and will try again and wait a while for nodes to be interviewed and report back. Though, this waiting step is not mentioned in the wizard nor the documentation so I agree there should probably be an update to one or both.

MartinHjelmare commented 2 years ago

The wizard explicitly calls out each device that isn't ready. Eg from the top post above:

Device Node 4 is not ready yet! For the best result, wake the device up if it is battery powered and wait for this device to become ready.

kernelpanic85 commented 2 years ago

Update on this, I left the migrate window open while waiting for all my nodes to be interviewed. It was updating live for a while but eventually stopped updating the status and timed out. However, I watched status in another window and once all nodes were alive (some I had to intervene and wake manually), I clicked Migrate and it seemed to work for about 90% of nodes and entities. Just had to clean up a few things.

Not sure if there is interest in fixing the page timing out, but otherwise the migration seemed to go pretty well.

dbosso commented 2 years ago

Great information! How did you watch the status in another window?

kernelpanic85 commented 2 years ago

Great information! How did you watch the status in another window?

I just opened the Z-Wave JS config page in another tab and periodically refreshed that until all device reported ready. Then went back to the migration wizard tab and clicked migrate.

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.