joleys / niko-home-control-II

Home Assistant Custom Integration for Niko Home Control II
MIT License
74 stars 21 forks source link

No connected sockets among entities #83

Closed flimofly closed 1 year ago

flimofly commented 1 year ago

Fresh install of Home Assistant and the NHC II integration.

I don't see the connected sockets (product id 170-33505) in the list of entities. They have been added via the Niko Home Control programming software ('addressed') and I can see them in the Energy tab in the Niko Home app.

I do see some inactive entities called binary_sensor.energyhome_report_instant_usage but these don't seem to be it.

Do I need to do something else (perhaps create a virtual device?) to make them show up in the integration?

tijsverkoyen commented 1 year ago

I have the same devices at home, and they appear in the integration.

Do you see other devices listed? Or is binary_sensor.energyhome_report_instant_usage the only one? Are you sure the connection to the Niko controller is successfull? Did you use the hobby account?

flimofly commented 1 year ago

Screenshot 2023-07-26 at 16 31 14

I see these ones. Do these match with how they appear in your installation?

tijsverkoyen commented 1 year ago

And are these available? Are there any other devices connected to your Niko Controller?

flimofly commented 1 year ago

Screenshot 2023-07-26 at 16 36 25

one of them shows some activity.

In the devices list I have my lights, video doorbell and shutters. These work fine.

tijsverkoyen commented 1 year ago

Ok, if you see your lights video doorbell and shutters it means that the connection to your Niko Controller is working.

Can you send me your device list, see https://github.com/joleys/niko-home-control-II#i-need-to-see-the-device-list. You can mail it to niko-ha [at] Verkoyen [dot] eu if you don't want to share it here. With the device list I can check if the devices are present. And try to debug it here.

flimofly commented 1 year ago

Sure, here are all my devices:

[edit: screenshot removed]

tijsverkoyen commented 1 year ago

That is not a device list, see the steps in https://github.com/joleys/niko-home-control-II#i-need-to-see-the-device-list

flimofly commented 1 year ago

Ok, I have the settings in my configuration.yaml but where do I retrieve the logs? The full log from System>Logs does not contain a device list.

tijsverkoyen commented 1 year ago

Did you restart Home Assistant? Check if there is a file home-assistant.log in the same folder as configuration.yaml, in this log the device list will be present if you search for "Received device list:".

tijsverkoyen commented 1 year ago

@flimofly any update?

flimofly commented 1 year ago

The file home-assistant.log is present but contains only:

2023-07-28 13:19:06.658 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nhc2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-28 13:19:06.658 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-28 13:19:19.579 DEBUG (MainThread) [custom_components.nhc2] Connecting to 192.168.0.42 with 50f25849-c2db-4be7-9335-1e4c186f3a3a
2023-07-28 13:19:19.679 DEBUG (Thread-3 (_thread_main)) [custom_components.nhc2.nhccoco.coco] Connected to MQTT broker
flimofly commented 1 year ago

full content of configuration.yaml:

# for home assistant debugging
logger:
      default: warning
      logs:
          custom_components.nhc2: debug

recorder:
  purge_keep_days: 30
  commit_interval: 3
  db_url: "postgresql://home-assistant:xxKO4Nat0Ex22hRapcHSePrY7PYgeI7c9hB492HkSJ9kKV9wKUpxW0F69WTOFM@home-assistant-cnpg-main-rw:5432/home-assistant?client_encoding=utf8"
http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.16.0.0/16
tijsverkoyen commented 1 year ago

If that is the full log, your controller is not sending a device list. Because after this message the device list is requested: https://github.com/joleys/niko-home-control-II/blob/bcee2683a0c9584700c6611c7f296ad2734bd645/custom_components/nhc2/nhccoco/coco.py#L179

I would suspect none of your other devices can be controlled from within Home Assistant, for instance the lights. It would think they are all reported as unavailable. Is that correct?

It should not be related, but are you using the latest version of this integration, Home Assistant and the Niko Home Controller 2?

How did you authenticate the Controller? Through the Hobby API key?

flimofly commented 1 year ago

Found it. Apologies, there were many empty lines after the short logs posted earlier.

Received device list: {'Params': [{'Devices': [{'Uuid': 'afa14035-b7ea-4da4-be62-3de50f6954c9', 'Identifier': '9f3c682f-34d0-412f-be9c-fcabdc440f2c', 'Model': 'light', 'Online': 'True', 'Name': 'Light Terras keuken', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '4fdb0489-e443-4131-b862-2b93e96ef177'}, {'LocationIcon': 'living2'}, {'LocationName': 'Terras keuken'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '3c42d06d-08ff-42bb-9b3e-84209e4805be', 'Identifier': 'a0d04d34-3963-4173-a69b-33cb16bef61f', 'Model': 'rolldownshutter', 'Online': 'True', 'Name': 'Shutter Keuken 1', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'shutter2'}, {'LocationId': '8f8dc2f7-679e-4ee5-bb7a-8336fdbcefe0'}, {'LocationIcon': 'kitchen'}, {'LocationName': 'Keuken'}], 'Properties': [{'Aligned': 'True'}, {'LastDirection': 'Open'}, {'Moving': 'False'}, {'Position': '100'}, {'Action': ''}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'LastDirection': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(Open,Close)'}}, {'Moving': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Position': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}, {'Action': {'HasStatus': 'false', 'CanControl': 'true', 'Description': 'Choice(Open,Close,Stop)'}}]}, {'Uuid': 'a211240f-7642-4610-bca6-9b3bb65ed589', 'Identifier': '4a91d680-411b-4858-aa0a-8bc6bc6dfb76', 'Model': 'light', 'Online': 'True', 'Name': 'Light Nachthal', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Nachthal'}, {'LocationId': 'e7b70b56-3887-4b37-ae0f-f5a56f713043'}, {'LocationIcon': 'stairways'}, {'IconCode': 'lamp2'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '098358b7-7dc2-4efc-9b28-9374b67644b8', 'Identifier': '7822fea7-d68f-4f45-962b-4dfdf861e609', 'Model': 'dimmer', 'Online': 'True', 'Name': 'Light Slaapkamer 1', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Slaapkamer 1'}, {'LocationId': '43e5c708-397d-451c-acb8-148255bab8f7'}, {'LocationIcon': 'bedroom'}, {'IconCode': 'lamp2'}], 'Properties': [{'Aligned': 'True'}, {'Status': 'Off'}, {'Brightness': '16'}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}, {'Brightness': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}]}, {'Uuid': '53206ab5-7c8e-494c-9377-9de63277e96f', 'Identifier': '03bbd387-6626-4118-bb37-611f5df6c79b', 'Model': 'light', 'Online': 'True', 'Name': 'Light Dressing', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '0979f130-86cc-4938-af45-3a2a8a8b8f0e'}, {'LocationIcon': 'dressing'}, {'LocationName': 'Dressing'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': 'de2b94a1-8c6d-421a-a2cc-f34e0f724f1d', 'Identifier': 'gatewayfw', 'Model': 'generic', 'Online': 'True', 'Name': 'gatewayfw', 'Technology': 'firmware', 'Type': 'gatewayfw', 'Traits': [{'HubType': 'COCO'}], 'Parameters': [], 'Properties': [{'ErrorCode': ''}, {'UpgradeStatus': 'Idle'}, {'CurrentFWInfo': '2.17.3 | 2023.1-20230515145832'}, {'AvailableFWInfo': ''}, {'RemoteAvailableFWInfo': ''}], 'PropertyDefinitions': [{'ErrorCode': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Text'}}, {'UpgradeStatus': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(Idle,RemoteVersionCheck,RemoteVersionVerify,DownloadImage,VerifyImage,WaitForConfirmation,UserConfirmed,Installing,InstallationCompleted,Reboot,FallBack,FellBack)'}}, {'CurrentFWInfo': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Text'}}, {'AvailableFWInfo': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Text'}}, {'RemoteAvailableFWInfo': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Text'}}]}, {'Uuid': '542ae116-aa45-435d-80d4-a655297b8665', 'Identifier': '043872f1-f0cc-4b8c-bd1e-2a8da7df1248', 'Model': 'light', 'Online': 'True', 'Name': 'Light Tuin berging', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '789b77ea-2a9e-4241-b9df-fe646a087abf'}, {'LocationIcon': 'terrace'}, {'LocationName': 'Tuin'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': 'e8fb665d-2209-40a0-b4fb-1b00f1c66e43', 'Identifier': '9586f29d-07c2-4562-a975-406c5e97b708', 'Model': 'rolldownshutter', 'Online': 'True', 'Name': 'Shutter Keuken', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'shutter2'}, {'LocationId': '8f8dc2f7-679e-4ee5-bb7a-8336fdbcefe0'}, {'LocationIcon': 'kitchen'}, {'LocationName': 'Keuken'}], 'Properties': [{'Aligned': 'True'}, {'LastDirection': 'Open'}, {'Moving': 'False'}, {'Position': '100'}, {'Action': ''}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'LastDirection': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(Open,Close)'}}, {'Moving': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Position': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}, {'Action': {'HasStatus': 'false', 'CanControl': 'true', 'Description': 'Choice(Open,Close,Stop)'}}]}, {'Uuid': '466c7534-63e5-4e4e-9285-410155ad2461', 'Identifier': '88badece-ff87-4a88-886f-48a21b4a9b46', 'Model': 'light', 'Online': 'True', 'Name': 'Light Dakterras', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': 'd77e9c11-ceba-4b54-93e2-2a9860f8a8e8'}, {'LocationIcon': 'patio'}, {'LocationName': 'Dakterras'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '0a560fc1-8952-45a2-b75d-207141e6e16f', 'Identifier': '3feed206-f081-4360-8a4b-bfb27d508d4a', 'Model': 'light', 'Online': 'True', 'Name': 'Light Toilet', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': 'd35c520e-ac62-409a-a781-79110a08a9d7'}, {'LocationIcon': 'toilet'}, {'LocationName': 'Toilet'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': 'b1817eeb-201c-48d6-97e9-1eede36d510a', 'Identifier': 'b23bc6cb-8ad0-45c2-bae9-10b2866c4300', 'Model': 'light', 'Online': 'True', 'Name': 'Light Vestiaire', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': 'f8d98210-69f8-4ea4-9051-700aa91d364c'}, {'LocationIcon': 'dressing'}, {'LocationName': 'Vestiaire'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '8c2b48f0-7c8b-414e-b981-35e4d0a7811c', 'Identifier': '90c3b63c-27e7-4526-92ff-5549436214bd', 'Model': 'doorlock', 'Online': 'False', 'Name': 'Door lock Inkom', 'Technology': 'nikohomecontrol', 'Type': 'lock', 'Traits': [{'Channel': '0'}, {'MacAddress': '0078cc4f'}], 'Parameters': [{'LocationName': 'Inkom'}, {'LocationId': '50a458c3-a606-4d1a-9268-72d030cb0971'}, {'LocationIcon': 'living2'}], 'Properties': [], 'PropertyDefinitions': []}, {'Uuid': 'e4dfb652-cabd-46de-8d75-dfa145f7cb4e', 'Identifier': '251a1314-e0f5-4ab3-864b-7dc3fbe1f95c', 'Model': 'generic', 'Online': 'True', 'Name': 'energyhome', 'Technology': 'nikohomecontrol', 'Type': 'energyhome', 'Traits': [], 'Parameters': [{'PeakEstimations': '20'}, {'PeakPercentile': '90'}, {'InjectionThreshold': '300'}, {'PeakMode': 'Direct'}, {'PeakAggregation': 'Maximum'}], 'Properties': [{'WaterVolume': ''}, {'ElectricalPowerFromGrid': '0.000'}, {'ElectricalPeakPowerToGrid': ''}, {'ElectricalEnergyFromGrid': ''}, {'ElectricalEnergyToGrid': ''}, {'ElectricalEnergyProduction': ''}, {'ElectricalPowerToGrid': '0.000'}, {'ReportInstantUsage': 'False'}, {'ElectricalPowerProductionThresholdExceeded': 'False'}, {'ElectricalEnergySelfConsumption': ''}, {'ElectricalPeakPowerFromGrid': ''}, {'ElectricalEnergyConsumption': ''}, {'GasVolume': ''}, {'ElectricalMonthlyPeakPowerFromGrid': ''}], 'PropertyDefinitions': [{'WaterVolume': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.0000,999999.9990,0.0001)'}}, {'ElectricalPowerFromGrid': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'ElectricalPeakPowerToGrid': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'ElectricalEnergyFromGrid': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'ElectricalEnergyToGrid': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'ElectricalEnergyProduction': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'ElectricalPowerToGrid': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'ReportInstantUsage': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Boolean'}}, {'ElectricalPowerProductionThresholdExceeded': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'ElectricalEnergySelfConsumption': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'ElectricalPeakPowerFromGrid': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'ElectricalEnergyConsumption': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}, {'GasVolume': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.0000,999999.9990,0.0001)'}}, {'ElectricalMonthlyPeakPowerFromGrid': {'HasStatus': 'false', 'CanControl': 'false', 'Description': 'Range(0.000,999999999.000,0.001)'}}]}, {'Uuid': '8cd4156e-5790-4d58-9b3b-798379212a32', 'Identifier': 'f223884b-655e-4161-9a89-494b4ffeb8e6', 'Model': 'light', 'Online': 'True', 'Name': 'Light Bureau 1', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '8f72d5fb-a194-4bb4-8e81-faf90afbc2f3'}, {'LocationIcon': 'bureau'}, {'LocationName': 'Bureau'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '25770595-63ea-409a-b26f-ca335cca1397', 'Identifier': 'ab864084-52bc-46ff-a5c4-05086350b0e5', 'Model': 'light', 'Online': 'True', 'Name': 'Light Technieken', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '7acb0c5b-83f8-4fb9-97e8-030d8c5ec4d1'}, {'LocationIcon': 'workplace'}, {'LocationName': 'Technieken'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': 'bfce8554-d505-45e6-abdd-9d5b0df54a3a', 'Identifier': '0605023f-ce66-469c-a407-ffdad88004c4', 'Model': 'dimmer', 'Online': 'True', 'Name': 'Light Inkom 1', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Inkom'}, {'LocationId': '50a458c3-a606-4d1a-9268-72d030cb0971'}, {'LocationIcon': 'living2'}, {'IconCode': 'lamp2'}], 'Properties': [{'Aligned': 'True'}, {'Status': 'Off'}, {'Brightness': '59'}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}, {'Brightness': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}]}, {'Uuid': '9359c5ba-34e3-4e5d-b608-0627a09823c8', 'Identifier': 'c624d127-38fe-439f-b91e-5f83d697710b', 'Model': 'light', 'Online': 'True', 'Name': 'Light Kelder', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '41e2fa85-879f-4cbb-9131-58bb7a95cd0f'}, {'LocationIcon': 'storage'}, {'LocationName': 'Kelder'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': 'd5cc5f4b-5487-4ff7-9efe-f56c537ca3af', 'Identifier': 'd4afe483-6db2-4ac7-9898-a4d1d9ed5d47', 'Model': 'rolldownshutter', 'Online': 'True', 'Name': 'Shutter Keuken 3', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'shutter2'}, {'LocationId': '8f8dc2f7-679e-4ee5-bb7a-8336fdbcefe0'}, {'LocationIcon': 'kitchen'}, {'LocationName': 'Keuken'}], 'Properties': [{'Aligned': 'True'}, {'LastDirection': 'Open'}, {'Moving': 'False'}, {'Position': '100'}, {'Action': ''}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'LastDirection': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(Open,Close)'}}, {'Moving': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Position': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}, {'Action': {'HasStatus': 'false', 'CanControl': 'true', 'Description': 'Choice(Open,Close,Stop)'}}]}, {'Uuid': 'c42ea0ac-53cc-4e9e-8e51-942d21b67d26', 'Identifier': '080a1484-2a51-42f4-bdd1-3366603853d0', 'Model': 'light', 'Online': 'True', 'Name': 'Light Tuin 1', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '789b77ea-2a9e-4241-b9df-fe646a087abf'}, {'LocationIcon': 'terrace'}, {'LocationName': 'Tuin'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': 'eedbb628-2227-43cb-91de-e28f2553fd5e', 'Identifier': '60b1ad23-f96d-4de9-bf28-2911b0642b7a', 'Model': 'light', 'Online': 'True', 'Name': 'Light Slaapkamer 2', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '79272d2a-23b9-421c-bd45-d2df56ee8bef'}, {'LocationIcon': 'bedroom-single'}, {'LocationName': 'Slaapkamer 2'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': 'df065feb-ac99-4253-9ada-c20eeb6ccf7b', 'Identifier': 'a0c87332-45d5-45f6-ba1a-7d22d87e910d', 'Model': 'light', 'Online': 'True', 'Name': 'Light Trap zolder', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': 'f99e476f-a5ac-42a3-81cb-f07b248a1fad'}, {'LocationIcon': 'storage'}, {'LocationName': 'Zolder'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': 'cd824e28-0921-40ac-9252-0f6bbb71eb87', 'Identifier': 'f6bf1d8d-1894-482f-924d-54e9cdf99808', 'Model': 'dimmer', 'Online': 'True', 'Name': 'Light Badkamer ', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Badkamer '}, {'LocationId': '953dd586-7d4e-49f8-819b-44b82e29bbd8'}, {'LocationIcon': 'rainshower'}, {'IconCode': 'lamp2'}], 'Properties': [{'Aligned': 'True'}, {'Status': 'Off'}, {'Brightness': '11'}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}, {'Brightness': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}]}, {'Uuid': '58aed03c-0213-46dd-82c9-d2668a2945aa', 'Identifier': '32a221c3-1225-4ddb-87a1-e6f0a224cf6c', 'Model': 'light', 'Online': 'True', 'Name': 'Light Toilet 1ste', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': 'e0e6dbf2-b51e-4de9-a0de-2b86913dbc4c'}, {'LocationIcon': 'toilet'}, {'LocationName': 'Toilet 1ste'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '802a3314-c42e-455f-b7a0-4cf2a47e18d2', 'Identifier': 'e1ec0886-8faf-4dae-9ab8-1c6cfff6e3af', 'Model': 'accesscontrol', 'Online': 'True', 'Name': 'Access control 1', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'Action': ''}, {'LocationName': 'Inkom'}, {'UnlockEndsCall': 'true'}, {'LocationIcon': 'living2'}, {'ButtonId': '00112a653be6_001'}, {'Ringtone': 'Metropolis'}, {'IconCode': 'entering'}, {'LocationId': '50a458c3-a606-4d1a-9268-72d030cb0971'}, {'DeclineCallAppliedOnAllDevices': 'true'}], 'Properties': [{'CallPending': 'False'}, {'CallAnswered': 'False'}, {'Doorlock': 'Closed'}], 'PropertyDefinitions': [{'CallPending': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'CallAnswered': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Doorlock': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(Open,Closed)'}}]}, {'Uuid': '02be5791-772d-481e-b3b0-541ce70a7f36', 'Identifier': '08d32248-48d8-4d38-ad66-2e47cb06d265', 'Model': 'light', 'Online': 'True', 'Name': 'Light Berging', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '7353f640-6261-4584-a41b-17b91cdd77a9'}, {'LocationIcon': 'storage'}, {'LocationName': 'Berging'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '133f06c8-101e-4793-aedc-ebf29777b515', 'Identifier': '663e83e6-6e82-4ab1-bb1f-56d6d15810f9', 'Model': 'dimmer', 'Online': 'True', 'Name': 'Light trap 1ste', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Leefruimte'}, {'LocationId': 'ece09a6f-d330-4e6a-b17d-4e6de83a3d26'}, {'LocationIcon': 'tv'}, {'IconCode': 'lamp2'}], 'Properties': [{'Aligned': 'True'}, {'Status': 'Off'}, {'Brightness': '38'}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}, {'Brightness': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}]}, {'Uuid': '93d87893-9b07-45e1-bf4a-4e18b576f4bd', 'Identifier': '0ac51949-6e16-467c-9e88-ac43bd3adc5d', 'Model': 'light', 'Online': 'True', 'Name': 'Light Zolderberging', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Dakterras'}, {'LocationId': 'd77e9c11-ceba-4b54-93e2-2a9860f8a8e8'}, {'LocationIcon': 'patio'}, {'IconCode': 'lamp2'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '1001d73a-b36c-421c-9611-cca73312b225', 'Identifier': '06e0aae6-9a92-48a4-9691-9ff00745925e', 'Model': 'dimmer', 'Online': 'True', 'Name': 'Light Keuken', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Keuken'}, {'LocationId': '8f8dc2f7-679e-4ee5-bb7a-8336fdbcefe0'}, {'LocationIcon': 'kitchen'}, {'IconCode': 'lamp2'}], 'Properties': [{'Aligned': 'True'}, {'Status': 'On'}, {'Brightness': '2'}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}, {'Brightness': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}]}, {'Uuid': '38696fb2-402b-4ec5-9d8f-25eb377eefaf', 'Identifier': '4a5520a2-da18-489b-913f-f6af106660c0', 'Model': 'dimmer', 'Online': 'True', 'Name': 'Light Inkom 5min', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Inkom'}, {'LocationId': '50a458c3-a606-4d1a-9268-72d030cb0971'}, {'LocationIcon': 'living2'}, {'IconCode': 'lamp2'}], 'Properties': [{'Aligned': 'True'}, {'Status': 'Off'}, {'Brightness': '59'}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}, {'Brightness': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}]}, {'Uuid': '3ce08bd7-5562-4027-8e54-3ac8ba20e248', 'Identifier': '660ea0b3-ed4b-48d8-bd21-f4886db8a5a8', 'Model': 'light', 'Online': 'True', 'Name': 'Light Slaapkamer 3', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': 'af82cb73-ffdc-4a55-995b-f0be86635d76'}, {'LocationIcon': 'bedroom-single'}, {'LocationName': 'Slaapkamer 3'}], 'Properties': [{'Status': 'Off'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '88da6b99-c7a5-487a-b634-a4fc6a4c63ee', 'Identifier': '209d20d9-92e3-4426-a351-5145e9686b4e', 'Model': 'dimmer', 'Online': 'True', 'Name': 'Light Leefruimte', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'LocationName': 'Leefruimte'}, {'LocationId': 'ece09a6f-d330-4e6a-b17d-4e6de83a3d26'}, {'LocationIcon': 'tv'}, {'IconCode': 'lamp2'}], 'Properties': [{'Aligned': 'True'}, {'Status': 'On'}, {'Brightness': '45'}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}, {'Brightness': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}]}, {'Uuid': 'cab46e3b-7710-4334-9458-5e38ccd9078a', 'Identifier': '579148c8-677a-40e3-84a0-5daf443773e1', 'Model': 'rolldownshutter', 'Online': 'True', 'Name': 'Shutter Keuken 2', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'shutter2'}, {'LocationId': '8f8dc2f7-679e-4ee5-bb7a-8336fdbcefe0'}, {'LocationIcon': 'kitchen'}, {'LocationName': 'Keuken'}], 'Properties': [{'Aligned': 'True'}, {'LastDirection': 'Open'}, {'Moving': 'False'}, {'Position': '100'}, {'Action': ''}], 'PropertyDefinitions': [{'Aligned': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'LastDirection': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(Open,Close)'}}, {'Moving': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'Position': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Range(0.00,100.00,1.00)'}}, {'Action': {'HasStatus': 'false', 'CanControl': 'true', 'Description': 'Choice(Open,Close,Stop)'}}]}, {'Uuid': '3689ddde-36af-4946-8e3b-a0e27155c57c', 'Identifier': 'c1f02329-6e02-487d-ba98-adba01f680b3', 'Model': 'light', 'Online': 'True', 'Name': 'Light Bureau', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'lamp2'}, {'LocationId': '8f72d5fb-a194-4bb4-8e81-faf90afbc2f3'}, {'LocationIcon': 'bureau'}, {'LocationName': 'Bureau'}], 'Properties': [{'Status': 'On'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off)'}}]}, {'Uuid': '4cfbd677-15ac-4155-a138-a290cd24f5a5', 'Identifier': 'd4d21e07-aac1-4ff1-a87a-c2b1af3349c2', 'Model': 'alloff', 'Online': 'True', 'Name': 'Basic all-off 1', 'Technology': 'nikohomecontrol', 'Type': 'action', 'Traits': [], 'Parameters': [{'IconCode': 'standby'}, {'LocationId': '50a458c3-a606-4d1a-9268-72d030cb0971'}, {'LocationIcon': 'living2'}, {'LocationName': 'Inkom'}], 'Properties': [{'AllOffActive': 'False'}, {'BasicState': 'Off'}], 'PropertyDefinitions': [{'AllOffActive': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Boolean'}}, {'BasicState': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(On,Off,Triggered)'}}]}, {'Uuid': 'e9fd9d64-2bf1-45f1-b2c1-1e8acd43e749', 'Identifier': '4b3a0d10-6a93-44a9-a3fb-f7f32d3fee77', 'Model': 'robinsip', 'Online': 'True', 'Name': 'External video unit with 1 illuminated touch button Inkom', 'Technology': 'nikohomecontrol', 'Type': 'videodoorstation', 'Traits': [{'MacAddress': '00112a653be6'}, {'NumberOfButtons': '1'}], 'Parameters': [{'ButtonName03': ''}, {'MicSensitivity': '65'}, {'ButtonName02': ''}, {'MjpegUri': '/pbhelper/stream.mjpeg'}, {'ButtonSensitivity': '90'}, {'LocationName': 'Home'}, {'ToneVolume': '2'}, {'SpeakerVolume': '110'}, {'RtspUri': ''}, {'ButtonName04': ''}, {'TnUri': '/camera/frame.jpeg'}, {'LocationIcon': 'general'}, {'ButtonName01': 'Deurbel'}, {'LocationId': '674631d1-8c0b-4a88-a7d6-f42cc454de9e'}], 'Properties': [{'Status': 'Online'}, {'IpAddress': '172308444.00'}, {'CallStatus01': 'Idle'}], 'PropertyDefinitions': [{'Status': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Choice(Online,Offline)'}}, {'IpAddress': {'HasStatus': 'true', 'CanControl': 'false', 'Description': 'Range(0.00,4294967295.00,1.00)'}}, {'CallStatus01': {'HasStatus': 'true', 'CanControl': 'true', 'Description': 'Choice(Idle,Ringing,Active)'}}]}]}], 'Method': 'devices.list'}
flimofly commented 1 year ago

According to the Diagnostics tab in the Niko Home Control programming software, I have three Connected socket outlet, Zigbee connected, with IDs C90D, E001 and 81F5.

flimofly commented 1 year ago

If that is the full log, your controller is not sending a device list. Because after this message the device list is requested:

https://github.com/joleys/niko-home-control-II/blob/bcee2683a0c9584700c6611c7f296ad2734bd645/custom_components/nhc2/nhccoco/coco.py#L179

I would suspect none of your other devices can be controlled from within Home Assistant, for instance the lights. It would think they are all reported as unavailable. Is that correct?

I can toggle light with the switches on the dashboard, so those work.

It should not be related, but are you using the latest version of this integration, Home Assistant and the Niko Home Controller 2?

Yes, I did a clean install of Home Assistant and NHC2 this morning.

How did you authenticate the Controller? Through the Hobby API key?

When setting up the NHC2 custom component I was given the choice between the Niko Hobby API and a profile on the Niko touchscreen. I chose the touchscreen. Filled in the password, but haven't touched the touchscreen in the meantime.

tijsverkoyen commented 1 year ago

From what I can see in your devices list, these 3 sockets are not present in the device list. I think the best way forward is to contact Niko and ask them why these are not present in the device list.

flimofly commented 1 year ago

Success!

I reinstalled NHC2 custom component authenticating via hobby API rather than touchscreen and now they show up.

Would be nice if it worked via the touchscreen too.

flimofly commented 1 year ago

While on the subject, am I correct that toggling the connected socket's electrical power (on/off) is not available as a an action / device?

tijsverkoyen commented 1 year ago

I reinstalled NHC2 custom component authenticating via hobby API rather than touchscreen and now they show up. Would be nice if it worked via the touchscreen too.

To be honest I don't have a clue on why these sockets are not working with the profile. It is almost certain related to the Niko Home Control II as these devices just don't appear in the device list. Feel free to compare the previous device list with the one that is received now.

The only thing I could think of is that these devices are not checked in the list of devices under the profile in the Niko Home Control Programming Software.

2022-08-30-programmatie-nhc_nhc2_-_Niko_Home_Control_programming_software

While on the subject, am I correct that toggling the connected socket's electrical power (on/off) is not available as a an action / device?

Yes it is. Check in Home Assistant → Settings → Devices & Services → niko Home Control II → XX devices. Search for devices with model "Socket". This is another device that is not the same as the energy metering, as stated in the Readme:

NHC Zigbee Smart plug This is the energy metering linked to a zigbee smart plug. The smart plug itself is a different device.

flimofly commented 1 year ago

"Energy" was indeed switched off in the touchscreen profile, I will try a reinstall to see if that has any effect.

Among the devices I see the connected sockets with model "Naso (Smartplug)". When I click those, I only see electricity measuring related info:

Screenshot 2023-07-28 at 13 58 29

tijsverkoyen commented 1 year ago

The Naso (smartplug) is the device for energy metering. There wil also be a a device with type (socket), which you can toggle.

flimofly commented 1 year ago

Apologies for reopening this issue, but I still cannot spot a (socket) in the device list. Any ideas?

tijsverkoyen commented 1 year ago

Can you check the device list again and search for the exact name that appears in the Niko Home Control app on your phone. If they don't appear in the app on your phone, you will need to contact Niko.

flimofly commented 1 year ago

Solved after contacting Niko

tijsverkoyen commented 1 year ago

What was the issue?