Service Netatmo

Hello all,

Small mockups of my progress in terms of discovery and device page, could you tell me what you think:
1st discovery:


Once saved (button becomes non-clickable and ‹ Already created ›):

When returning to the page (the devices already created no longer appear but will reappear in case of an update on the Netatmo side (the devices are linked to rooms; they will need to be updated if, for example, a room valve is changed - later ^^)

View of devices:

Thanks in advance

2 Likes

Very nice!

Just for consistency, the labels should be changed:

  1. Remove ‹ Netatmo › after ‹ devices ›
  2. Remove ‹ devices › after ‹ discovery ›
  3. Remove ‹ connection ›

See:

![Screenshot_20231203_141626_Chrome|630x500](upload://1hURrFjxNuJKqtefwEIKFsdJMuL.jpeg

2 Likes

Netatmo documentation at the end.
Very nice.

For the documentation, use what I did for the Sonos integration.

1 Like

Thanks for your initial feedback. I fixed the menus. Below is the new visual, as well as the dashboard.


However, I still have an unsolvable bug for the moment: I don’t have all 16 features accessible in the Dashboard editor. But I can’t find the subtlety ^^ Especially since the category/type are the same as other ones present!!
![image|690x452](upload://9Wc3d4c2drS5WND

4 Likes

Weird! Are you sure they’re the same (category/type/read_only)?

Yep ^^ but we can start from an assumption => I must have messed up somewhere ^^ I’ll investigate a bit more this weekend ^^

It seems like you’re missing 2 « heure » features on your dashboard, 2 out of 3… didn’t you simply forget to add them to your widget?

That’s exactly the problem ^^ they are not selectable because they don’t appear in the selection list ^^
The 3rd one is my fault ^^ it’s the setpoint mode (manual, frost-protection, …) selectable (so not yet developed).

Great, I have the answer!!^^

These two features are normally controllable. You can define a start and an end for manual heating…

So, what do you think? Should I,

1 Like

So I agree with what @pierre-gilles is asking: if they’re not read-only, but their value can be modified, it’s possible that the « time editor » widget hasn’t been developed on the dashboard yet :slight_smile:

I recommend doing the dashboard widget development in a separate PR, because this development is common to all Gladys, not just the Netatmo service.

Now, I think you can leave it as it is — we don’t see them on the dashboard because they’re not controllable… for the moment… is it really a big deal?

2 Likes

Indeed!!

Not a problem at all since we can still control the setpoint temperature, there is a default value at 3:00.

For the mode as well, when we control the setpoint temperature, we change the mode on the backend directly to « manual » (the Netatmo API requires that we send it) — we will just not be able to control the return to « program » or « schedul » for the moment.

So I’m not dealing with it for now!!

Thanks for the answers!!

Perfect :+1: Better for the PR to be as small as possible :slight_smile:

Where are you at? Don’t get caught up in the dev madness aha, as soon as it works on a single device, open the PR and we’ll test + merge that!

1 Like

Yes yes ^^ The main problem was the OAuth2 connection. But with Alex’s help it’s okay ^^

As for the rest, it’s about sorting through the proposed features. Let’s say I’ve laid everything out (because in my head everything is useful ^^) and I’m going to present it like that. Then we’ll talk and decide. I’m not far from the end.

Just some WebSocket issues to sort out ^^ with potential errors. I’m doing a lot of real tests, but it’s hard to test them all.

Hello everyone!!

An image is ready, available via :
docker pull terdious/gladys:netatmo-integration-dev

Of course all tests are welcome so I propose sharing my Netatmo account (privately) for those who would like to try even without an account.

@Tlse-vins, @PhilippeMA, @spenceur you are welcome to test the errors for now ^^ Awaiting the next steps!!

@_Will_71, it seems you are the only one with a thermostat, I’ll let you see what you think of the overall setup.

@damalgos, also, if you’re around and have a bit of time ^^

Another thing, I intentionally left some not very pretty things… to get your feedback ^^ (Spoiler: login page buttons for example^^)

In the meantime I’m continuing to write the tests.

Thanks in advance to the beta testers ^^

2 Likes

Hi @Terdious, I’ll get back to you by this weekend at the latest.

1 Like

I’ll check as soon as I have 20 minutes to see if the connection is OK :slight_smile:

1 Like

Same here, I’ll test tonight if I can.

1 Like

Does your image work ?
I’ve tried several times to run it but the downloads keep getting stuck.
Here is my command:

docker run -d \
--log-driver json-file \
--log-opt max-size=10m \
--cgroupns=host \
--restart=always \
--privileged \
--network=host \
--name gladys-test \
-e NODE_ENV=production \
-e SERVER_PORT=8001 \
-e TZ=Europe/Paris \
-e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/gladysassistant_zwave_test:/var/lib/gladysassistant \
-v /dev:/dev \
-v /run/udev:/run/udev:ro \
terdious/gladys:netatmo-integration-dev

Did I make a mistake ?

I have this error :

Unable to find image 'terdious/gladys:netatmo-integration-dev' locally
netatmo-integration-dev: Pulling from terdious/gladys
2387a44129d2: Pull complete
97960080ae5c: Extracting [===>                                                ]  1.966MB/38.3MB
504ae9e41237: Download complete
3aae3ebfd600: Download complete
0bc9504a2982: Downloading [===========================================>        ]  34.99MB/40.81MB
6c5857630eff: Download complete
4f4fb700ef54: Download complete
50de3d2ecd8e: Downloading [===================>                                ]  33.94MB/89.69MB
49601568595d: Downloading [=====>                                              ]  864.7kB/8.76MB
32aa70fb4e7d: Waiting

There is no error in your log.
It just says that the image isn’t on your local machine and so it downloads it.