# Miele@home integration - set target temperature

**URL:** <https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218>\
**Category:** General\
**Created:** [7 March 2023 09:09 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218 "2023-03-07T09:09:23Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [7 March 2023 17:03 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/21 "2023-03-07T17:03:30Z")

</div>

I would think it is not quoted correctly, possible single quotes around it may do the trick. or try @Colin possible solution. Which for some weird reason he replied to me and not you.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 March 2023 17:11 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/22 "2023-03-07T17:11:56Z")

</div>

> [@E1cid](#):
>
> Which for some weird reason he replied to me and not you.

Oops, Sorry. I thought it was the OP asking if the quotes should be there.

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [7 March 2023 17:17 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/23 "2023-03-07T17:17:40Z")

</div>

> [@Colin](#):
>
> ```auto
> msg = { payload: `curl -X PUT "https:\/\/api.mcs3.miele.com\/v1\/devices\/${device}\/actions\" -H "accept: *\/*" -H "Authorization: Bearer ${bearer}" -H \"Content-Type: application\/json\" -d '{"${action}": ${JSON.stringify(parameter)}}'` };
> 
> ```

@Colin  
This fixed the output (see below) and without echo it is also working in practice  
`curl -X PUT https://api.mcs3.miele.com/v1/devices/000712266404/actions -H accept: */* -H Authorization: Bearer NL_47bcbe885880a6abb982f2bbe757dcc5 -H Content-Type: application/json -d {"targetTemperature": [{"zone":1,"value":6}]}`

Thank you so much for this. Much appreciated.

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [7 March 2023 17:19 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/24 "2023-03-07T17:19:19Z")

</div>

@E1cid  
Single quotes did not the trick. But luckily @Colin has the solution.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 March 2023 17:21 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/25 "2023-03-07T17:21:06Z")

</div>

I must work out where the quotes went, I don't like not understanding something.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [7 March 2023 17:21 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/26 "2023-03-07T17:21:21Z")

</div>

I ment around the json not to replace the double quotes. Not sure which way you went.  
@colin I did read something the other day about -d and --data acting differently, can not remember what it was though

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [7 March 2023 17:43 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/27 "2023-03-07T17:43:02Z")

</div>

@E1cid I did replace the quotes

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [7 March 2023 17:44 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/28 "2023-03-07T17:44:49Z")

</div>

@Colin  
Let me know how I can help with that

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [7 March 2023 17:44 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/29 "2023-03-07T17:44:51Z")

</div>

I never said or meant to replace the quotes, as the would not be a valid JSON

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 March 2023 17:44 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218/30 "2023-03-21T17:44:54Z")

</div>

Closed on 21 March 2023 17:44 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218.md?page=1)
