jesserockz / ha-leafspy

A Home Assistant integration to receive live data sent from the LeafSpy app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The integration doesn't work

dcarotenuto opened this issue · comments

I installed the integration using the documentation and in my HA I'm able to show the leaf spy icon in integrations panel, but there is no other info or component shown in the ha interface, I have to insert something in configuration,yaml file? There is no documention about that.

What is the webhook to insert in leaf spy pro app?

Thanks

When you add the integration, the instructions are provided as a part of the config flow. Remove it and add it again to see them, including the webhook and password.

Reading the install instruction here, I have to copy the leafspy dir in custom_componets, after that, rebooting ha in my log I have the following

[homeassistant.loader] Loaded leafspy from custom_components.leafspy

[homeassistant.loader] You are using a custom integration leafspy 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

[homeassistant.loader] Loaded updater from homeassistant.components.updater
2022-02-27 15:26:20 INFO (MainThread) [homeassistant.bootstrap] Domains to be set up: {'recorder', 'zone', 'updater', 'group', 'weather', 'device_tracker', 'cert_expiry', 'webhook', 'local_ip', 'alexa', 'dhcp', 'frontend', 'system_log', 'default_config', 'script', 'sun', 'lovelace', 'leafspy', 'config_check', 'websocket_api', 'upnp', 'person', 'tag', 'scene.....

[homeassistant.setup] Setting up leafspy
[homeassistant.setup] Setup of domain leafspy took 0.0 seconds

I found in .storage/core.config_entries the following
{
"entry_id": "e012aecf589b47f9aee9c0eb40c70ed4",
"version": 1,
"domain": "leafspy",
"title": "Leaf Spy",
"data": {
"secret": "xxxxxxxxxxxxxxxxxx"
},
"options": {},
"system_options": {
"disable_new_entities": false
},
"source": "user",
"connection_class": "local_push",
"unique_id": null,
"disabled_by": null
},
but nothing about webhook or other info displayed in log or in lovelace interface.

In leafspy app I set the secret value and in url parameter the address of my ha system, but nothing happens in HA.

Can you please add something more explanation?

Thank a lot.

Screenshot from 2022-02-28 09-31-00

Screenshot from 2022-02-28 09-31-07

Screenshot from 2022-02-28 09-31-12

The instructions are there, and you can see the URL at the bottom of the config flow. (It will show your personal external hostname there, that is just my local dev instance.

Thanks a lot for explanation, now is clear.
In my case the submit button in integration is not shown.
Solved.