core: Integration Problem with 1st Gen myStrom Adapter

The problem

MyStrom Adapter 1st Generation with Firmware 2.68.10 failes to integration. Only 2nd Generation adapters with temperature sensor works (in my case they have 4.0.7 firmware).

What version of Home Assistant Core has the issue?

core-2023.7.0

What was the last working version of Home Assistant Core?

core-2023.6.3

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

mystrom

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

Old yaml entry, before mystrom was migrated to integration by 2023.7.0

platform: mystrom
name: Hifi Center
host: !secret ip_mystrom_hifi_center

Anything in the logs that might be useful for us?

2023-07-05 22:26:01.387 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Hifi Center for mystrom
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/mystrom/__init__.py", line 35, in async_setup_entry
    device_type = info["type"]
                  ~~~~^^^^^^^^
KeyError: 'type'

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 36 (15 by maintainers)

Most upvoted comments

I submitted a support request to MyStrom to create a new firmware version for the Gen1 MyStrom Wifi Switches. In the new version, the fields type and name should be added. I’m not really hoping that MyStrom will implement this at the moment. Let’s wait a few days for their response. Whether they then correct all “inequalities” like the missing content or the inconsistency between “gw” and “gateway” is questionable. 2023-07-07_13-12-24

Great! I first want to have the other PR merged because it has some improvements in the tests, and then I want to add this as a testcase.

Quick response, hope nipped in the bud…

On Fri, July 7th, 2023 at 13:36 myStrom AG info@mystrom.ch wrote: Hello Take it - chances are small. Regards, Max