-
Compteur de contenus
48 -
Inscription
-
Dernière visite
-
Jours gagnés
15
Tout ce qui a été posté par Sankotronic
-
It is done already
-
Hi all, I was working yesterday on further improving Netatmo Weather station QA and Netatmo Air Quality QA code to better handle tokens. It seems that Netatmo servers do not like refreshing tokens too often and it is not actually necessary, so now my code refreshes tokens on the QA restart and then every two hours. I reduced token validity time from 3 hours (180 min) to 2 hours just to have enough time (approximately 1 hour) to make backup and reboot HC3. According to the Netatmo instructions on page: https://dev.netatmo.com/apidocumentation/oauth#refreshing-a-token It is necessary to refresh access token only when it expires, so will also test it with normal validity time of 180 minutes. Since only access token expires it should be possible to renew it even after expiration time or more than 3 hours after last renewal with the existing refresh token. I believe that it is also possible that sometimes Netatmo servers send wrong token update and my code now checks that and keeps refresh token until successful renewal of the access token. This is also only possible explanation for loosing connection to the Netatmo servers even access token didn't really expire. Of course, to test if this really works takes time, but will not wait much further to publish new version of my Netatmo solution. IMPORTANT NOTE - It is very important that for each instance of QA users add corresponding app on Netatmo connect. Using one Netatmo app for more than one QA will cause them to stop working eventually, except if all QA refreshes tokens to one shared variable.
-
Hi @fredokl, Function checkSettings() just checks if any of the 4 credential variables: client_id, client_secret, access_token and refresh_token contain either empty string or default value "-" and if they do, then that ERROR is printed. Netatmo QA version 1.1 checks credentials on every connection to the Netatmo servers and I guess that one or both tokens where not received correctly. In new version 1.2 I added more checks and more information printed. It is possible that Netatmo servers from time to time do not return new tokens, so I will correct code to keep current ones in that case. BTW - I noticed today that my Netatmo weather QA also lost connection due to bad tokens. So, there is something wrong on Netatmo side too.
-
Hi @fredokl, there are four variables that are required for QA to work: client_id - you get when you login to Netatmo Connect and add new app under 'My apps' client_secret - same as client_id you get with adding app access_token & refresh_token - after adding app, on the bottom of the page there is token generator. For scope you select read_station and click on button Generate Token. You will be directed to your account page to confirm making new tokens and then you will get both tokens which you need to paste to variables on QA and save. Above error is printed by checkSettings() function after QA reads all its local variables.
-
Hi @jojo, variable on QA tab. I usually use QA variable tab for users setting and avoid any need to edit code.
-
Hi @mprinfo, I do understand that ZigBee devices are cheaper than z-wave, but there is a good reason for that. Anyway, as I wrote, it all depends on what is expected. I'm very happy with z-wave and only ZigBee devices I have is Philips HUE lighting. Hi @jojo, I added variable "auto_name" to all my QA that add child devices and if value is set to 'false' then QA will not change child devices names.
-
Hi @mprinfo, Yes, definitely migrating from HC2 to HC3. For me this is the best solution. Don't know for other people, it all depends on what someone needs and expects What do you expect?
-
Just working on Netatmo Weather Station QA new version 1.2 that will have better checking for communication with Netatmo servers, also added variable "connection" that can be used to check status of connection with e.g. GEA. Also, wind direction is now moved to measuring unit instead on QA log label so can be seen on mobile app: Same improvements will be added to my Netatmo Air Quality QA and weather providers (OpenWeatherMap, WeatherBit and Weather Underground) that I also working on.
-
Hi @Nico, I'm still learning LUA for HC3 myself. Since Fibaro does not provide nothing but basic developer information it takes time to understand all the possibilities that HC3 provides. My plan is to migrate UHAS for HC2 to HC3 and all my currently published work for HC3 is result of my learning and testing. Since I'm still learner myself, I can try to help with migration, but for free.
-
Salut @Nico, La solution de station météo Netatmo pour HC2 avec un nouveau type d'octroi de code d'autorisation est disponible dans la section de téléchargement du forum Fibaro : https://forum.fibaro.com/files/file/93-netatmo-weather-station-suite-standalone/ Il existe également UHAS (Universal Home Automation System) pour HC2 qui contient la station météo Netatmo, la solution Netatmo Air Quality et Netatmo Cameras. Les utilisateurs n'ont pas besoin d'installer le package complet, mais les modules de traduction, de planification, de système et de notification doivent être installés pour que les autres solutions fonctionnent pleinement. UHAS est disponible dans la section de téléchargement du forum Fibaro : https://forum.fibaro.com/files/file/483-uhas-universal-home-automation-system-for-hc2/ (Google translate )
-
Salut @jojo, Ma version nécessite que les utilisateurs se connectent à Netatmo et ajoutent leurs propres applications avec l'ID client, le secret client et les jetons générés. De plus, ma version prend en charge les unités de mesure sélectionnées par l'utilisateur, par exemple, si vous modifiez l'unité de vitesse du vent de km/h à m/s, celle-ci est également correctement mise à jour sur QA. Prend également en charge plusieurs stations avec des capteurs de pluie et de vent et des modules intérieurs supplémentaires. Dès que j'aurai fini de créer le contrôle qualité Advanced Notification Center (ANC), je mettrai à jour tout mon contrôle qualité pour envoyer des notifications. Identique à mon ANC pour HC2, il prendra en charge le courrier électronique Fibaro, le push et le push interactif, Pushover, WhatsApp, Signal, Groupme et Telegram. Il y aura également un support pour LaMetric Clock et Sonos TTS Ma version peut être trouvée ici : https://marketplace.fibaro.com/items/netatmo-weather-station-qa-v1-1 Hi @jojo, My version requires users to login to Netatmo and add their own apps with client ID, client secret and generated tokens. Also, my version support user selected measuring units, for example, if you change wind speed unit from km/h to m/s then this is also properly updated on QA. Also, supports more than one station with rain and wind sensors and additional indoor modules. As soon as I finish making Advanced Notification Center (ANC) QA then I will update all my QA to send notifications. Same as my ANC for HC2 it will support Fibaro e-mail, push and interactive push, Pushover, WhatsApp, Signal, Groupme and Telegram. There will be also support for LaMetric Clock and Sonos TTS My version can be found here: https://marketplace.fibaro.com/items/netatmo-weather-station-qa-v1-1
-
I guess that you use Gsmart version and not mine?
-
According to the response from Netatmo servers, tokens validity is 180 minutes or 3 hours. Since both my Netatmo QA is refreshing tokens every 10 minutes this should be OK even if Fibaro gateway needs to be rebooted. I just have made some modifications to the code to make it easier for users to see status of the QA.
-
I can also confirm that I get warning that my credentials for Netatmo Weather QA and Netatmo Air Quality QA on HC3 are not valid anymore, but on my HC2 everything works as expected. I have now renew credentials and will monitor to see if there will be problems again. Need to make notification center and then add sending messages in case of any problems with these QA.
-
Quick App - Météo WeatherBit v1.3
Sankotronic a répondu à un(e) sujet de couillerot dans Quick App Developpeur
Bonjour à tous, l'erreur 429 est renvoyée par les serveurs Weatherbit.io si vous avez dépassé le nombre de requêtes disponibles. Pour les comptes gratuits, seuls 50 appels sont disponibles en une journée. Cela signifie que vous pouvez actualiser les données toutes les 30 minutes. Si en plus de la météo actuelle, il y a aussi des appels pour obtenir des prévisions, alors tous ces appels sont comptés dans les 50 appels gratuits par jour. Pour éviter cette erreur, vous devez soit souscrire à un forfait payant, soit conserver un forfait gratuit et réduire les appels par jour. J'ai créé des fournisseurs météo pour OpenWeatherMap, WeatherBit et Weather Underground et, après tests, je les publierai sur Fibaro Marketplace et le forum Fibaro. Hello all, error 429 is returned by weatherbit.io servers if you exceeded available number of requests. For free accounts there is only 50 calls available withing one day. This means that you can refresh data every 30 minutes. If besides current weather there is also call to get forecast, then all this calls are counted to the free 50 calls per day. To avoid this error you either need to get payed plan, or to keep free pan reduce calls per one day. I have made weather providers for OpenWeatherMap, WeatherBit and Weather Underground and after testing will be published on Fibaro Marketplace and Fibaro forum. Apologies for my French since it is just Google translation -
Hi @flacon030, That is strange. I have turned off my HC3 for almost a month and after turning it back on everything worked OK with the tokens saved before turning it off.
-
INTRODUCTION Tempest Weather station QA brings complete integration of Tempest weather station to HC3, HC3Lite and Yubii Home users. PREREQUISITES Fibaro HC3, HC3Lite or Yubii Home with firmware 5.150 or greater One or more Tempest Weather station FEATURES Complete integration of Tempest weather station with HC3, HC3Lite and Yubii Home Automatically changes measurement units and recalculates them when user change the units in the mobile app. After adding child QA by using button on main QA user can remove unwanted ones. Removed child QA can be added again. Has button for manually update QA. QA has built in multi-language support with 32 languages included. QA can use HC selected language or user can select any other available language. AVAILABLE DOWNLOAD Tempest Weather station QA v1.1 Standalone Tempest Weather station QA User manual v1.0EN Download from Fibaro marketplace: https://marketplace.fibaro.com/items/tempest-weather-station-qa-v1-0-standalone Download from Fibaro forum: https://forum.fibaro.com/files/file/505-tempest-weather-station-qa/ VERSION HISTORY 1.0 - first public release as open source. LOOK & FEEL Enjoy coding and your new Tempest weather station QA! Sankotronic
-
- 4
-
-
-
Hello all, There is solution for Sonos TTS for both HC2 and HC3 that requires installation of https://github.com/jishi/node-sonos-http-api on e.g. Raspberry PI, but it gives full control over your Sonos speakers including TTS notifications. For HC2 there is Sonos API Player VD Standalone that can be downloaded from Fibaro Forum download section: https://forum.fibaro.com/files/file/417-sonos-api-player-vd-standalone/ For HC3 family there is Sonos API Player QA Standalone that can be downloaded from Fibaro Forum download section: https://forum.fibaro.com/files/file/415-sonos-api-player-qa-standalone/ Both packages also contain User manual for easy setup and isntructions how to use them from other VD, QA and scenes. Both solutions are tested with the latest Sonos OS S2 version 16.2 (build 79.0-52294) and hardware versions 1.8.1.3-2.0, 1.8.3.7-22, 1.20.1.6-2.2, 1.21.1.8.-2.2 and Roam 1.33.1.10-2-13 Both solutions support Sonos favorites for unlimited number of radio stations and playlists, TTS notifications etc.
-
Hello all, For those who are looking for Netatmo weather station and Netatmo air quaility (coach) integrations to HC3 that just works, please check here: Netatmo air quality on Fibaro marketplace: https://marketplace.fibaro.com/items/netatmo-indoor-air-quality-monitor-qa-v1-1 Netatmo Weather st. on Fibaro marketplace: https://marketplace.fibaro.com/items/netatmo-weather-station-qa-v1-1 They are also available on Fibaro forum download section: Netatmo air quality: https://forum.fibaro.com/files/file/497-netatmo-indoor-air-quality-monitor-qa/ Netatmo Weather st.: https://forum.fibaro.com/files/file/496-netatmo-weather-station-qa-standalone/ Netatmo Weather station QA supports more than one station including all additional indoor modules, rain gauge and wind gauge. Netatmo Air Quality monitor QA will find all coach modules in your home and add to the HC3. Both solutions use new Netatmo Oauth2. User just need to add app for each QA and generate tokens that need to be pasted to QA local variables together with client ID and secret that is valid for the app added on Netatmo developer site: https://dev.netatmo.com/
-
Quick App - Enphase Envoy (Fork from TitiXsi)
Sankotronic a répondu à un(e) sujet de TitiXsi dans Quick App Developpeur
Hi @TitiXsi, first of all sorry for my English which is as it is, but French I know just a few phrases. Thank you for this QA. I have Enphase Envoy S metered EU with two clamps. Your QA is almost up to the task. problem is that I have errors that are reported regularly: [28.04.2024] [14:59:06] [ERROR] [QA_ENPHASE_47]: Enphase:postEnphaseAPI() HTTP Status code = 500 [28.04.2024] [14:59:06] [ERROR] [QA_ENPHASE_47]: Can't get new token : HTTP Status code = 500 Also, I setup icons, but they are not set properly: Icons are added using Enphase main QA. Maybe I did something wrong since this forum was not accessible for me for some time so I wasn't able to read all posts? Also, it would be nice that Child-Balance Today is added and calculated from: today imported - (today production - today consumed) = today exported etc. Also, it is not so hard to check value of the measurements and depending on value change unit W to kW to W and also Wh to kWh to MWh to kWh to Wh BTW - I did try to go through your code and I must agree with @Daniel Plantings that is too complicated. All I wanted is to add printing some statuses to the QA log and changing units depending on measured values, but it seems that will be easier to write my own QA Kind regards from Croatia -
Tuto Multimédia Fibaro Hc2 Vd Sonos Remote: Télécommande Pour Diffuseur Sonos
Sankotronic a répondu à un(e) sujet de Krikroff dans Tutoriels
I haven't really looking for other services until yesterday voicerss.org stopped working with Sonos remote VD. For first time our Angelina is speechless I was thinking one of these services if it is possible: Google Microsoft Bing Text to Speech API AWS Polly I like and prefer your solution that does not need Rasp PI and external solution. Sonos remote VD lacks only this two possibilities to be best of the best: more choice for TTS group/ungroup speakers Thank you and apologies to bother you with question that was maybe already asked. -
Tuto Multimédia Fibaro Hc2 Vd Sonos Remote: Télécommande Pour Diffuseur Sonos
Sankotronic a répondu à un(e) sujet de Krikroff dans Tutoriels
Sorry for my English but I don't speak French and Google either :-) @Krikroff, do you have any plans to add some other TTS service to this VD in the future? Thank you -
Hi everyone, I have Fibaro HC2 with FW 4.090 and included 66 devices at the moment with more to come. I started with home automation 9 months ago and still learning. I started immediately with LUA skipping block scenes. I don't speak French unfortunately but with some help from Google brother I hope I will manage my way here. I'm also member of Fibaro international forum. Wish you all the best with your home automation, more pleasure and less headache!