py-smart-gardena / hass-gardena-smart-system

Home Assistant custom component integration for Gardena Smart System
Apache License 2.0
211 stars 53 forks source link

Can't find any devices #11

Closed Johnyyy85 closed 4 years ago

Johnyyy85 commented 4 years ago

Hi,

There are 0 entiteties and devices. Am i doing something wrong?

thanks

image

dueltschi commented 4 years ago

same here

image
osks commented 4 years ago

How did you install? Which "version" (commit) are you running?

TheFitzZZ commented 4 years ago

Got mine configured now as well - seeing the same issue.

Running HA Supervised 0.110.3, Integration on commit #ebb01e5

northpower25 commented 4 years ago

@TheFitzZZ could you please attach logs @osks It looks like the same problem like #12 and #10

TheFitzZZ commented 4 years ago

Sorry for not thinking of that:

Logger: homeassistant.config_entries Source: custom_components/gardena_smart_system/init.py:92 First occurred: 15:49:03 (1 occurrences) Last logged: 15:49:03

Error setting up entry for gardena_smart_system
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 217, in async_setup
    hass, self
  File "/config/custom_components/gardena_smart_system/__init__.py", line 51, in async_setup_entry
    await hass.async_add_executor_job(gardena_system.start)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/gardena_smart_system/__init__.py", line 92, in start
    raise Exception("No locations found")
Exception: No locations found
Logger: gardena.smart_system
Source: custom_components/gardena_smart_system/__init__.py:88
First occurred: 16:05:14 (1 occurrences)
Last logged: 16:05:14

403 : {'message': 'Forbidden'}

image

northpower25 commented 4 years ago

@dueltschi @TheFitzZZ Please Check this -> https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/5#issuecomment-636923978

TheFitzZZ commented 4 years ago

Will wait a day or two and report back :-)

dueltschi commented 4 years ago

same here. Will report back in a few days. Thanks Guys!

grm commented 4 years ago

Maybe one of you would you agree to send me your creds and API key by mail (from my profile) so i can debug more deeply ? (you can change them before and will be able to change them afterwards)

Grm

grm commented 4 years ago

Gardena is currently having issues with its API. We need to let them sole their issue as it si probably related !

ApplesandPears commented 4 years ago

Guys, for everyone who wants to integrate Gardena Smart System into Home Assistant. There is an alternative way of doing this.

Go to "Configuration / Einstellungen" then to "Integrations / Integrationen", click the "+" in the bottom right corner, Search for "HomeKit Controller", Click on it and then choose from the drop down menu the Gardena Smart System. Enter the HomeKit code, printed on the back of the Gardena Smart Gateway - et voilà the Gardena Bridge including all Switches and Sensors is now available in Home Assistant.

From there, if you're an iOS User, you can expose those devices to the HA HomeBridge.

image

ApplesandPears commented 4 years ago

@grm What's the advantage of using the Py integration over the HomeKit Controller method?

grm commented 4 years ago

I never used homekit, I will try to find out how this works, but I can already tell :

I may have to dig deeper on homekit in order to have a better insight, but these are my first impressions. And on your sides, do you see any advantage/inconvenient of each solutions ?

northpower25 commented 4 years ago

@TheFitzZZ @Johnyyy85 please check this solution for the issue and give us a feedback if it works -> https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/5#issuecomment-638851191

grm commented 4 years ago

It should work for you also. If you still have any issue relate to a 403 error : please fille this ticket now : https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/5

TheFitzZZ commented 4 years ago

Awesome, works, thanks!

ApplesandPears commented 4 years ago

@grm there are two sides of HoneKit.

The HomeKit-Controller can connect devices that have native HomeKit Integration. That’s how you import devices into Home Assistant. You don’t need a Apple device for that.

The HomeKit Bridge will expose all devices, entities, automations etc to Apple HoneKit. To access HomeKit itself then, you need e.g. an iPhone

So my assumption would be including Gardena Bridge through HomeKit-Controller (!) should work for everyone.

The HomeKit Bridge is just something for Apple Users...

Do you want to take a look on it? I could document it ...

TheFitzZZ commented 4 years ago

I have both installed. The HomeKit part actually exposes a little less information, as the garden sensor is lacking soil temp and battery information. Smart irrigation seems to be identical, since it's only exposing the valve control. Don't have the smart version of the mower so don't know about that :-)

Also changing the duration of the irrigation isn't possible, which is quite useful for automation. My current HomeKit based automation needs to close and re-open to get more than the standard 20 mins :-).

ApplesandPears commented 4 years ago

@TheFitzZZ Thanks for your feedback. I don’t have the irrigation, just the water control and sensors. I can automate it quite well and the water control can be activated for as long as you want or as short as you want. Is this different with the irrigation control?

@grm here is a article which will give you better understanding https://www.home-assistant.io/integrations/homekit_controller/

TheFitzZZ commented 4 years ago

For me it's just a switch, and it reports a 20 min timeout when enabled. Maybe just a difference between the two systems :-) Can work around it easily so I don't mind.

ApplesandPears commented 4 years ago

@TheFitzZZ Okay. ;-)