Skip to content

Can't pass the IEC OTP code #266

@niraviry

Description

@niraviry

System Health details

System Information

version core-2025.7.3
installation_type Home Assistant Supervised
dev false
hassio true
docker true
container_arch aarch64
user root
virtualenv false
python_version 3.13.3
os_name Linux
os_version 5.10.160-rockchip-rk3588
arch aarch64
timezone Asia/Jerusalem
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4916
Installed Version 2.0.5
Stage running
Available Repositories 2113
Downloaded Repositories 49
Home Assistant Cloud
logged_in true
subscription_expiration November 23, 2025 at 2:00 AM
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
cloud_ice_servers_enabled true
remote_server eu-central-1-14.ui.nabu.casa
certificate_status ready
instance_id 72e2a97ced7c49379438c1acf3c19995
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Debian GNU/Linux 12 (bookworm)
update_channel stable
supervisor_version supervisor-2025.07.1
agent_version 1.6.0
docker_version 28.0.4
disk_total 231.4 GB
disk_used 19.2 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
supervisor_api ok
version_api ok
installed_addons Samba share (12.5.2), FTP (5.3.2), Let's Encrypt (5.4.9), CEC Scanner (3.0), Spotify Connect (0.15.0), Log Viewer (0.17.1), Terminal & SSH (9.18.0), Mosquitto broker (6.5.1), Duck DNS (1.19.0), DSS VoIP Notifier (4.0.0), Traccar (0.25.0), File editor (5.8.0), MariaDB (2.7.2), go2rtc (1.9.9), HassOS I2C Configurator (0.14), Matter Server (8.0.0), Hikvision Doorbell (3.0.22), Frigate (Full Access) (0.15.2), MQTT IO (0.4.0), Network UPS Tools (0.14.1)
Dashboards
dashboards 2
resources 24
views 15
mode storage
Network Configuration
adapters lo (disabled), enP4p65s0 (enabled, default, auto), hassio (disabled), docker0 (disabled), veth9211e06 (disabled), veth932ab02 (disabled), veth98c9219 (disabled), vetha474d3e (disabled), vethde88d4f (disabled), vethec1a81f (disabled), vethee032d3 (disabled), veth931f159 (disabled), vethcc7bef3 (disabled), veth50df700 (disabled), vethb622535 (disabled), veth7e5b517 (disabled), veth369deb1 (disabled)
ipv4_addresses lo (127.0.0.1/8), enP4p65s0 (10.0.0.37/24), hassio (172.30.32.1/23), docker0 (172.17.0.1/16), veth9211e06 (), veth932ab02 (), veth98c9219 (), vetha474d3e (), vethde88d4f (), vethec1a81f (), vethee032d3 (), veth931f159 (), vethcc7bef3 (), veth50df700 (), vethb622535 (), veth7e5b517 (), veth369deb1 ()
ipv6_addresses lo (::1/128), enP4p65s0 (fdba:9ccb:e43c:93e4:cc64:44ea:a45a:8260/64, fe80::d23a:37a:e320:7f92/64), hassio (fe80::d463:a2ff:fe30:93d1/64), docker0 (fe80::70cf:92ff:fe29:c698/64), veth9211e06 (fe80::20ee:d2ff:fe56:9446/64), veth932ab02 (fe80::f815:78ff:fe3e:2900/64), veth98c9219 (fe80::88eb:32ff:fe6b:c52e/64), vetha474d3e (fe80::c64:58ff:fe82:a837/64), vethde88d4f (fe80::64c3:d1ff:fe56:20f2/64), vethec1a81f (fe80::60f0:e5ff:feb8:255a/64), vethee032d3 (fe80::4e9:cdff:fedb:7669/64), veth931f159 (fe80::e4ec:a9ff:fe1f:90e4/64), vethcc7bef3 (fe80::1025:acff:fe0c:795c/64), veth50df700 (fe80::1c1f:f4ff:fe96:f626/64), vethb622535 (fe80::3404:a3ff:fee4:9caa/64), veth7e5b517 (fe80::74ce:25ff:fed6:7a58/64), veth369deb1 (fe80::4ba:1ff:fead:40c/64)
announce_addresses 10.0.0.37, fdba:9ccb:e43c:93e4:cc64:44ea:a45a:8260, fe80::d23a:37a:e320:7f92
Recorder
oldest_recorder_run July 18, 2025 at 9:19 AM
current_recorder_run July 26, 2025 at 8:24 PM
estimated_db_size 1375.71 MiB
database_engine sqlite
database_version 3.48.0
Sonoff
version 3.8.2 (c4b6fda)
cloud_online 13 / 16
local_online 11 / 11

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

After the integration stopped working a while ago, I have returned to fix this, seeing a new version appeared (0.49).
I try to setup the IEC and input my ID, get an OTP code but I get an unknown erron. If I enter a wrong OTP code, the error suits this case.
This is what I get from the log:
This error originated from a custom integration.

Reproduction steps

1.Updated the add-on. It appears in the forlder as of today.
2.I entered the Devices & Services and tried to add a new one. The IEC integration asks for my ID.
3.It returns an OTP code via SMS but than I get an unknown error.
When I enter the personal area using the same OTP method, it works OK.
...

Debug logs

This error originated from a custom integration.

Logger: iec_api.commons
Source: custom_components/iec/config_flow.py:133
integration: Israel Electric Corporation (IEC) (documentation, issues)
First occurred: 8:26:16 PM (4 occurrences)
Last logged: 8:28:54 PM

Failed call: (Code 401): Unauthorized

Diagnostics dump

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions