Service Netatmo

Documentation finished!! Add Netatmo integration doc by Terdious · Pull Request #238 · GladysAssistant/v4-website · GitHub
Is there anyone who can tell me if everything is clear?

Airtable ‹ en › and ‹ fr › updated (Airtable - Netatmo NATherm1).
However I don’t see how to integrate it into the documentation, since the documentation ID ‹ netatmo › doesn’t exist and I don’t see how to add it:

For info, I added to the Amazon links \u0026tag=gladproj-21. The redirect works but I’m not really sure the affiliation is being taken into account (‹ 21 › = year 2021? Do we have to change it every year?)

Thanks for the documentation! It’s very comprehensive and clean.

For the title, can you put a longer title that clearly explains what this tutorial allows you to do?

Example: Connect your Netatmo thermostats to your home automation system

This helps get found on Google for those kinds of keywords with a catchy title not tied to Gladys (do not mention Gladys in the title)

For the roadmap section, I’d suggest removing all dates — we never commit to dates on Gladys otherwise it just creates disappointment :slight_smile: Priorities change, and it’s impossible to commit… Just put a list of things you want to do!

That’s kind, but there’s no need to add affiliate links, they are added automatically! And no, 21 is just a number generated once by Amazon a long time ago :wink:

Regarding the integration, how far along are you and who managed to test it in the end?

1 Like

Hi @pierre-gilles !!
Welcome back, best wishes for 2024 to you.

Ok, I’ll make the changes for the doc ^^

For this I followed Sonos for the ending: « Connect your Netatmo thermostats to your connected home »

Sorry I understand the thread is very long to go through ^^
So as said above, the integration PR is ready,
I sent you a review request.
Tested by @_Will_71 (test with his thermostat) and by @Tlse-vins (test without compatible devices + tests with my instance with a thermostat). Apart from the display bug of the setpoint (not related to this PR) everything should be fine. Has been running on my setup for almost 3 weeks.

The advantage is that it can be tested by anyone; I just need to share my instance. If you’re up for it… tell me.

Let me know.

All good, it’s done for the documentation and for Airtable.

[quote=« Terdious, post:262, topic:5910 »]
However I don’t see how to integrate it into the documentation

perfect!

Ok I’ll take a look next week, I have quite a lot to catch up on first :slight_smile:

Can’t you create an option in Airtable? If you type « netatmo » doesn’t it offer you to create it?

1 Like

[quote="pierre-gilles, post:266,

I didn’t have time to look at everything, but I noted this:

  • In the Sonos docs we added the link to the Android and Apple apps; do the same for Netatmo.
  • I put all the clickable buttons in Gladys as preformatted text (Intégration -> Netatmo) with the small arrow as well.
  • Add at the end: I invite you to post a message on the forum

Hi @Tlse-vins,

It’s already done!

It’s fixed:

  • Before
    image

image
…etc…

  • After
    image

image
…etc…

Done, I also added access to the « Dashboard » and « Scenes » documentation:

Everything is live. Thanks for your feedback.

Edit :

My bad… Apple was missing ^^ => It’s done!

@pierre-gilles please, I need help,

A quick question, which I initially asked you on the Netatmo integration pull request (PR), but I think you haven’t been paying attention to it:
After the release of v4.34.0 I updated the branch, but as often happens there was a failure on the Codecov report. In your live coding video, you answered my question about re-running the PR tests:


However on my side, I don’t have the « Re-run jobs » option at all :sob: — wouldn’t you need to grant some permissions so I can perform this action?

Thanks in advance, I’d be disappointed if you passed over the

Ah, it often happens that codecov breaks, it’s super unstable ^^

[quote="Terdious, post

Yep, I checked too… nothing… maybe an option on my end then!!

Weird, well I re-ran it myself but it’s really not great if a developer from a fork can’t re-run the tests of their own PR! ^^

I left you a first review of this PR: Netatmo integration by Terdious · Pull Request #1951 · GladysAssistant/Gladys · GitHub

I’m a bit surprised, the PR doesn’t look at all like what I saw when I went to look at your code after the live coding… The code is quite far from what I show in the live coding, I think!

I’ve pointed out quite a few things to fix. Spend time on the PR and try to read through it entirely to apply these changes everywhere :slight_smile:

In terms of code quantity, we’re back to a pretty large PR so I’m really glad we limited ourselves to the thermostat, it’s already a big chunk to review

Thanks again for the work done on this PR :folded_hands:

1 Like

Hello @pierre-gilles,

Thank you very much for your review. I’ll get to it today. I’ll spend whatever time is needed.

It’s true, but does that seem normal to you because we’re not using an external module like for sonos, or do you think that’s really not normal? Otherwise, it might not be worth fixing, but rather rewriting the code entirely…

About the « netatmoHandler » passed everywhere… I suppose it’s a misunderstanding/configuration issue with my VS Code. The « this. » is reported as an eslint error everywhere in my VS Code interface, so I was passing the ‹ netatmoHandler › for that reason only.

Do we agree that it’s because we’re managing the whole code ourselves and not going through a node_module « netatmo »? Or for you is it related to bad code?

I’m asking these questions because I spend a lot of time on this (with pleasure, of course) but if it’s going to make you waste a lot of time and me too, we shouldn’t continue. If, however, with the fixes you point out and the time you spend we’re « sure » to succeed, then I’ll give everything :sweat_smile:

Thanks again for the review!

No no, don’t worry, the spirit of the PR and the overall way of doing things is good :slight_smile:

1 Like

Hi @pierre-gilles,

I’ve finished the requested changes (I’ve checked everything and reread your comments three times, I hope I didn’t forget anything, otherwise I’m really bad) and updated the tests; everything should be fixed.

As I mentioned in the PR, however, I don’t understand the issue you had

Blockquote
On the functional side

When I first open the integration, here is what I see:

There is an error message immediately (I didn’t do anything), which is a bit weird for the user.

I tried to reproduce it but I can’t even reproduce your first connection error… Apparently none of the two testers encountered it and I’ve just retried with a new installation on WSL, I don’t have this problem…, my first-connection state:


I also tested via the Docker image and my first-connection state with an empty DB is also:

Could you check on your side to guide me if you encounter the issue again? Logs, browser inspector?

I should point out that the visuals are from before the fixes.

Thanks in advance for the next review.

For info, after a few final changes, here is what I have on my 3 service pages for the states :

5 Likes

Thanks @Terdious for the fixes !! :slight_smile: It’s very nice.

I think it was just a local server connection issue during my tests, I don’t think it’s related to the PR! I’ll re-test and I’ll keep you posted :slight_smile:

1 Like

Don’t hesitate to ask if you want access to view the devices live and to do real testing, it can be better, and it shouldn’t be complicated! I just tested with another email address, it works well even without owning Netatmo equipment.

1 Like

@pierre-gilles ,

Since I’m waiting on this PR, can I start a PR based on this first PR? Knowing that it won’t be wasted work, it will be easy to recover the work even if big changes are requested during the new review. But it allows me to stay involved and save time overall.

My question is mainly: for you, what impact? Will it be constraining or problematic once the first PR is merged?

No, it’s not a problem as long as you separate the two PRs properly

1 Like