Closed felisida closed 2 years ago
Please Send me an email with your thingkey and authkey
Ok, thanks a lot, My info S/N: * authkey: Zcs ***
Attahched you will find the mail with authkey
Saluti Felice Il 29 nov 2021, 14:27 +0100, sdesalve @.***>, ha scritto:
Please Send me an email with your thingkey and authkey — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
I've redacted you personal info.
your thingkey should be like in this sample:
- platform: zcsazzurro
name: test_zcsazzurro
thingkey: "zm1es999xxx999"
authkey: "Zcs eHWAeEq0aYO0"
please send PDF to my mail
me
chiocciola
sdesalve
.it
Same problem here.
I get something like: 2021-12-06 11:42:11 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'attributes' when rendering '{% set energy = states.sensor.fotovoltaico.attributes.current.energyGenerating | float | default (0) %} {{ energy | round(2) }}'
It seems there is a mismatch in name definition into the instructions When defining the pointer, the sensor is defined as "test_zcsazzurro" but found no reference to it in both integration sensor and in templates.
Trying to dig into the code but due to my lack of HA component I was not able to find a consistent naming.
Will send my thingykey and autkey if you wish to.
thank you
m.
test_zcsazzurro is the name that you give to your sensor. In your log I see "fotovoltaico".
Have you defined your sensor correctly and gaved the same name?
In pratica se lo dichiari come test_zcsazzurro non puoi interrogarlo come fotovoltaico. Obviously
test_zcsazzurro is the name that you give to your sensor. In your log I see "fotovoltaico".
Have you defined your sensor correctly and gaved the same name? sensor:
- platform: zcsazzurro name: fotovoltaico thingkey: "ZM1XXXXXXXX" authkey: "Zcs eHWAeEq0aYO0"
but I made a mistake since I use the splitted config, thus the "sensor:" keyword should not be used. Now I have a sensor defined.
but I get a fetch error. 2021-12-06 12:23:10 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: https://third.zcsazzurroportal.com:19003 failed with 2021-12-06 12:23:10 ERROR (MainThread) [custom_components.zcsazzurro.sensor] Unable to start fetching data from ZCSAzzurro 2021-12-06 12:23:10 WARNING (MainThread) [custom_components.zcsazzurro.sensor] Empty reply found when expecting JSON data 2021-12-06 12:23:10 DEBUG (MainThread) [custom_components.zcsazzurro.sensor] Return the state: False
I heared that on this weeks API server should be under maintenance. The log is reporting that Hassio was unable to get data from remote server...
Please try to leave hassio get data correctly
ok thank you.
will keep the conf as is, and in case will get beck to you by next week
thank you
m.
On Mon, Dec 6, 2021 at 12:51 PM sdesalve @.***> wrote:
I heared that on this weeks API server should be under maintenance. The log is reporting that Hassio was unable to get data from remote server...
Please try to leave hassio get data correctly
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sdesalve/zcsazzurro/issues/3#issuecomment-986703523, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYEAXDFRJXETZNGFZEF3C3UPSPVBANCNFSM5I6YSV7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hello @sdesalve
Is the intergration working?
I requested the Api from ZCS and they sent the pdf file
I created a sensor in my sensor.yaml (which is referenced in configuration.yaml)
- platform: zcsazzurro name: fotovoltaico thingkey: "zb1esxxxkarxxx" authkey: "Zcs xXXXxXx0xXX0"
and a template sensor in configuration.yaml like
`template:
I can not get any feedback from the sensor , Am I doing something wrong or is there a problem with the integration?
Thank you
Am I doing something wrong
Can you post your Hassio LOGS? Otherwise I can't realize what's wrong with your config
Anyway ZCS is migrating their APIs to a new server and will be replaced soon. So it's working bad lately
As a side note, the error "Template variable error: 'None' has no attribute 'attributes' when rendering '{% set energy = states.sensor.fotovoltaico.attributes.current.energyGenerating | float | default (0) %} {{ energy | round(2) }}'" happens when the automation cannot fetch from server.
Once a value is fetched at least once, the schema is populated and such errors seems to disappear. (the "empty response" from the servers keeps bothering me but this is problem on their side )
Please add a note on troubleshooting so you will get less complains about this :-).
Ciao ho seguito le istruzioni, ma evidentemente sbaglio qualcosa. ricapitolando: