mtgeekman / Home_Assistant_NeoSmartBlinds

Adds NeoSmart Blinds support to Home-Assistant.
46 stars 14 forks source link

Required key not provided @ data['hub_id']. Got None #16

Closed cjoha closed 3 years ago

cjoha commented 3 years ago

Hi there,

I'm running Home Assistant 2021.6.3, as a supervised install (Home Assistant OS 5.13). I've installed this integration to control neosmartblinds over the static IP I have assigned to the neosmartblinds controller. My config is below:

On reboots I can see the following error reported. I'm fairly sure the integration does not like the characters included in the hubID key, but I've checked and this is the hubID my app is reporting on my iPhone.

Are you seeing similar errors?

mtgeekman commented 3 years ago

Interesting, the hub ID appears fine to me.

Which version did you download from here? 1.5?

cjoha commented 3 years ago

It would have been the latest version, I just ran "git clone https://github.com/mtgeekman/Home_Assistant_NeoSmartBlinds.git"

mtgeekman commented 3 years ago

your config for this should be similar to mine as below:

cover:
  - platform: neosmartblinds
    name: Bedroom South Blind
    host: 192.168.1.xx
    hub_id: L0nloxdZUCq30xxxxxxxxxxx
    protocol: http
    port: 8838
    blind_code: 044.171-01
    close_time: 26

I believe you can drop the last 3 lines:

rail: 1 percent_support: 0 motor_code: bf

as those are default values and the motor code only makes a difference for the 'no' motors currently.

cjoha commented 3 years ago

ok I've removed the three optional parameters, but same error. If I run the "Configuration validation" under "Server controls" of HA I get the following error back:

Invalid config for [cover.neosmartblinds]: required key not provided @ data['hub_id']. Got None. (See ?, line ?). Invalid config for [cover.neosmartblinds]: required key not provided @ data['hub_id']. Got None. (See ?, line ?). Invalid config for [cover.neosmartblinds]: required key not provided @ data['hub_id']. Got None. (See ?, line ?). Invalid config for [cover.neosmartblinds]: required key not provided @ data['hub_id']. Got None. (See ?, line ?).

mtgeekman commented 3 years ago

can you copy/paste the cover section of your config.yaml and make sure you enclose it in a code block so it keeps formatting?

mtgeekman commented 3 years ago

it might also be worth doing another git clone. I just pushed some changes into master that fixed a few issues. currently, the releases do not match the repo as we are working on fixing things in the current version. but I think it's good at this point.

cjoha commented 3 years ago

hang on - i think I know the problem. Layer 8 issue.

cjoha commented 3 years ago

yup sorry - I had the individual blinds declared further up but had missed a hubID in one of them. Sorry!

mtgeekman commented 3 years ago

Got it Pebkac. bites the best of us. Hah!

Just as a note, I would suggest pulling the latest changes as it does fix a few things that may show up.

Thanks for giving the integration a shot!