# Ngenic

**URL:** <https://community.homey.app/t/ngenic/36939>\
**Category:** Tutorials\
**Created:** [November 4, 2020, 2:48pm UTC](https://community.homey.app/t/ngenic/36939 "2020-11-04T14:48:48Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Markus\_Nilsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_nilsson/32/30905_2.png) [@Markus\_Nilsson](https://community.homey.app/u/Markus_Nilsson)\
**Post date:** [November 4, 2020, 2:48pm UTC](https://community.homey.app/t/ngenic/36939/1 "2020-11-04T14:48:49Z")

</div>

Tried to control my Ngenic thermostat from Homey. I think this works:

1. Install [HTTP request flow cards App for Homey | Homey](https://homey.app/en-us/app/com.internet/HTTP-request-flow-cards/)

2. Setup a flow with the PUT JSON (A40) card with the following parameters

Text 1 (url): { “method”: “put”, “protocol”: “https:”, “hostname”: “app.ngenic.se”, “port”: 443, “path”: “/api/v3/tunes/{tune-id}/rooms/{room-id}”, “headers”: {“authorization”: “Bearer your-id”, “content-type”: “application/json”}}

Text 2 (json data): {“targetTemperature”: 20.0}

Replace tune-id, room-id and your-id with the identification info relevant for your installation. A tutorial on how to access these can be found at [https://developer.ngenic.se/](https://developer.ngenic.se/)

---

<div class="post-metadata">

**Author:** ![Mikael\_Borgner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mikael_borgner/32/33718_2.png) [@Mikael\_Borgner](https://community.homey.app/u/Mikael_Borgner)\
**Post date:** [January 9, 2021, 5:08pm UTC](https://community.homey.app/t/ngenic/36939/2 "2021-01-09T17:08:21Z")

</div>

Hi Markus.  
I have an Ngenic and would like to control it from Homey.  
I could not find a tutorial to find the tune-id, room-id and your-id.  
Or maybe the problem is that i am not a software developer 🙂

Do you have time to explain how you found it?

Kind regards! / Mikael

---

<div class="post-metadata">

**Author:** ![Markus\_Nilsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_nilsson/32/30905_2.png) [@Markus\_Nilsson](https://community.homey.app/u/Markus_Nilsson)\
**Post date:** [January 11, 2021, 12:27pm UTC](https://community.homey.app/t/ngenic/36939/3 "2021-01-11T12:27:00Z")

</div>

Hi Mikael,

Look at [https://developer.ngenic.se/](https://developer.ngenic.se/) under “authentication” for your-id, it is referred to as “personal access token”

Then use the curl commands (available via a Linux/Mac terminal shell) under “a few usage examples” to retrieve the tune-id and room-id, referred to as tuneUuid and nodeUuid in the example.

Hope this will work out!

All the best,  
Markus

---

<div class="post-metadata">

**Author:** ![Mikael\_Borgner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mikael_borgner/32/33718_2.png) [@Mikael\_Borgner](https://community.homey.app/u/Mikael_Borgner)\
**Post date:** [January 12, 2021, 4:01pm UTC](https://community.homey.app/t/ngenic/36939/4 "2021-01-12T16:01:10Z")

</div>

Hi again 🙂

Thanks alot now i understand. I managed to get hold of my Uuids so i think i got it right now.  
I had to reset my password for Ngenic since i couldnt log into the developer altough my password worked for normal Ngenic use.  
But it didnt work i just get a error message…

 ![bild](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/7/071213a472a536f03d73f267ec516f1fd1f65ac0.png)

---

<div class="post-metadata">

**Author:** ![Stoerseth](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stoerseth/32/34199_2.png) [@Stoerseth](https://community.homey.app/u/Stoerseth)\
**Post date:** [January 16, 2021, 5:59pm UTC](https://community.homey.app/t/ngenic/36939/5 "2021-01-16T17:59:05Z")

</div>

Hi Great tip Markus

I have done the same and have the same error message as Mikael ☹

---

<div class="post-metadata">

**Author:** ![Markus\_Nilsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_nilsson/32/30905_2.png) [@Markus\_Nilsson](https://community.homey.app/u/Markus_Nilsson)\
**Post date:** [June 30, 2021, 1:40pm UTC](https://community.homey.app/t/ngenic/36939/7 "2021-06-30T13:40:45Z")

</div>

Note sure what the error can be. I remember having troubles setting this up. Perhaps there were multiple ways of doing a JSON PUT? Think it had to be an A40 request, see [HTTP request flow cards App for Homey | Homey](https://homey.app/en-us/app/com.internet/HTTP-request-flow-cards/). You see the A40 info when editing the card on the phone but I cannot see this in the web interface.

I see that the title of your card is “PUT JSON (url)”, while my card just reads “PUT JSON” in the beginning. Perhaps that’s related?

---

<div class="post-metadata">

**Author:** ![erlend\_oyen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erlend_oyen/32/18133_2.png) [@erlend\_oyen](https://community.homey.app/u/erlend_oyen)\
**Post date:** [November 5, 2021, 5:08pm UTC](https://community.homey.app/t/ngenic/36939/8 "2021-11-05T17:08:23Z")

</div>

Hi, old thread but:  
just used the standard logic board for http request, HTTP PUT

URL:  
[https://app.ngenic.se/api/v3/tunes/TUNE\_ID/rooms/ROOM\_ID](https://app.ngenic.se/api/v3/tunes/TUNE_ID/rooms/ROOM_ID)

HEADER:  
Content-type: application/json  
Authorization: Bearer YOUR \_TOKEN

BODY:  
{“targetTemperature”: 15}

---

<div class="post-metadata">

**Author:** ![Benny\_Grahn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/benny_grahn/32/49562_2.png) [@Benny\_Grahn](https://community.homey.app/u/Benny_Grahn)\
**Post date:** [February 8, 2022, 10:24am UTC](https://community.homey.app/t/ngenic/36939/9 "2022-02-08T10:24:45Z")

</div>

> [@Markus\_Nilsson](#):
>
> {“authorization”: “Bearer your-id”, “content-type”: “application/json”}

Får inte rätt på detta lägger du in det precis som ovan?

---

<div class="post-metadata">

**Author:** ![Markus\_Nilsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/markus_nilsson/32/30905_2.png) [@Markus\_Nilsson](https://community.homey.app/u/Markus_Nilsson)\
**Post date:** [February 8, 2022, 11:05am UTC](https://community.homey.app/t/ngenic/36939/10 "2022-02-08T11:05:42Z")

</div>

![xy](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/0/d0cc9674b37fbf8a7a0146ec83500c60bf35b315.png)

Skärmdump från homey.app. Funkar det bättre så?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [February 8, 2022, 11:23am UTC](https://community.homey.app/t/ngenic/36939/11 "2022-02-08T11:23:25Z")

</div>

> If you could please keep the conversation in English as much as possible, then more people will be able to participate and help you.

---

<div class="post-metadata">

**Author:** ![Benny\_Grahn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/benny_grahn/32/49562_2.png) [@Benny\_Grahn](https://community.homey.app/u/Benny_Grahn)\
**Post date:** [March 11, 2022, 2:04pm UTC](https://community.homey.app/t/ngenic/36939/12 "2022-03-11T14:04:17Z")

</div>

Super! Thank you

---

<div class="post-metadata">

**Author:** ![Roger\_Levenrot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roger_levenrot/32/56492_2.png) [@Roger\_Levenrot](https://community.homey.app/u/Roger_Levenrot)\
**Post date:** [September 21, 2022, 2:19pm UTC](https://community.homey.app/t/ngenic/36939/13 "2022-09-21T14:19:21Z")

</div>

I get stuck trying to read the temperature sensors connected to ngenic.  
I’ve found the token and room and sensor uuid and get a CURL GET to work on my MAC in terminal.

But I don’t get it how to translate that to a HTTP GET in Homey…  
Any suggestions??

curl command  
curl -X GET   
-H “Authorization: Bearer abcd1234PRIVATETOKENabcd1234”   
“[https://app.ngenic.se/api/v3/tunes/{f3e2e629-8eb9-ec11-997e-e42aac6e0f30}/measurements/{0687242c-75cc-ec11-997e-e42aac6e0f30}/latest?type=temperature\_C](https://app.ngenic.se/api/v3/tunes/%7Bf3e2e629-8eb9-ec11-997e-e42aac6e0f30%7D/measurements/%7B0687242c-75cc-ec11-997e-e42aac6e0f30%7D/latest?type=temperature_C)”

response:  
{“hasValue”:true,“time”:“2022-09-20T16:25:28 Europe/Stockholm”,“value”:21.5625}%

were “value” is the current temperature

---

<div class="post-metadata">

**Author:** ![Patrik\_Henriksson1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patrik_henriksson1/32/56421_2.png) [@Patrik\_Henriksson1](https://community.homey.app/u/Patrik_Henriksson1)\
**Post date:** [September 22, 2022, 10:11am UTC](https://community.homey.app/t/ngenic/36939/14 "2022-09-22T10:11:02Z")

</div>

I work with this now, i cant really get it to work as you all write here. I get it to work in curl . How to translate from curl to work in homey pro flow? I try with card put http.But I cant change temp there. But in real curl it works.

---

<div class="post-metadata">

**Author:** ![Roger\_Levenrot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/roger_levenrot/32/56492_2.png) [@Roger\_Levenrot](https://community.homey.app/u/Roger_Levenrot)\
**Post date:** [September 23, 2022, 3:34pm UTC](https://community.homey.app/t/ngenic/36939/15 "2022-09-23T15:34:44Z")

</div>

This tread might help…

> [@Problem reading temperature from ngenic via HTTP GET](https://community.homey.app/t/problem-reading-temperature-from-ngenic-via-http-get/69255/15):
>
> Hi! Thanks for helping! Something wrong with the Header… [Homey Pro 2022-09-23 08-24-15]

---

<div class="post-metadata">

**Author:** ![Jimmy\_Rosen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jimmy_rosen/32/79349_2.png) [@Jimmy\_Rosen](https://community.homey.app/u/Jimmy_Rosen)\
**Post date:** [September 23, 2023, 5:47pm UTC](https://community.homey.app/t/ngenic/36939/16 "2023-09-23T17:47:09Z")

</div>

has anyone got this working with homey pro 23?

---

<div class="post-metadata">

**Author:** ![Par\_Ostberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/par_ostberg/32/93954_2.png) [@Par\_Ostberg](https://community.homey.app/u/Par_Ostberg)\
**Post date:** [December 21, 2023, 11:41am UTC](https://community.homey.app/t/ngenic/36939/17 "2023-12-21T11:41:58Z")

</div>

@Markus_Nilsson - Kan du tänka dig att ta fram en uppdatering för Homey 2023?

---

<div class="post-metadata">

**Author:** ![Par\_Ostberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/par_ostberg/32/93954_2.png) [@Par\_Ostberg](https://community.homey.app/u/Par_Ostberg)\
**Post date:** [December 21, 2023, 11:45am UTC](https://community.homey.app/t/ngenic/36939/18 "2023-12-21T11:45:54Z")

</div>

Did you find anything regarding Ngenic and Homey?

---

<div class="post-metadata">

**Author:** ![Nicklas\_Sellberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nicklas_sellberg/32/84685_2.png) [@Nicklas\_Sellberg](https://community.homey.app/u/Nicklas_Sellberg)\
**Post date:** [January 4, 2024, 1:32pm UTC](https://community.homey.app/t/ngenic/36939/19 "2024-01-04T13:32:10Z")

</div>

Hi to get the latest tempvalue you need to do (and send the bearer of cource):

[https://app.ngenic.se/api/v3/tunes/{tuneUuid}/measurements/{nodeUuid}/latest?type=temperature\_C](https://app.ngenic.se/api/v3/tunes/%7BtuneUuid%7D/measurements/%7BnodeUuid%7D/latest?type=temperature_C)

Works for me
