# Switching on/off oven using temperature in Home Assistant

**URL:** <https://discourse.nodered.org/t/switching-on-off-oven-using-temperature-in-home-assistant/4486>\
**Category:** General\
**Created:** [1 November 2018 20:31 UTC](https://discourse.nodered.org/t/switching-on-off-oven-using-temperature-in-home-assistant/4486 "2018-11-01T20:31:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohj](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@ohj](https://discourse.nodered.org/u/ohj)\
**Post date:** [1 November 2018 20:31 UTC](https://discourse.nodered.org/t/switching-on-off-oven-using-temperature-in-home-assistant/4486/1 "2018-11-01T20:31:33Z")

</div>

Hello. I've just started out with Node-RED, and I love how easy it is to visualize the automations. Or at least I _will_ love it when I'm finally able to use it properly. 🙂

Currently I'm trying to regulate the temperature in my kitchen by switching on/off a panel oven (using a Z-Wave wall plug) when evaluating a temperature. The data is available in Home Assistant, I'm just not sure how to utilize it in Node-RED.

The temperature is available as sensor.kitchen\_temperature, and the wall plug is available as switch.telldus\_tzwp102\_plugin\_switch\_switch.

I thought about using the node-red-contrib-ramp-thermostat node for switching the wall plug. And I've gotten so far that I'm able to use the events:all node + switch node to filter out the state changed events. However, I don't know how to read out the temperature from the sensor and feed this into the thermostat node, and then control the wall plug using the thermostat node.

How can I do this?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [1 November 2018 21:36 UTC](https://discourse.nodered.org/t/switching-on-off-oven-using-temperature-in-home-assistant/4486/2 "2018-11-01T21:36:31Z")

</div>

YOur best bet is to implement MQTT to send the info across to Node-Red.

Having said that - you are far better off on the HA forum and asking them for the how to on this as your data is originating from there and there are a lot of knowledgeable people on that forum re MQTT interactions.

Once you get it into MQTT as a valid stream of data you can do anything you want with it in NR

Craig

---

<div class="post-metadata">

**Author:** ![ohj](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@ohj](https://discourse.nodered.org/u/ohj)\
**Post date:** [2 November 2018 05:45 UTC](https://discourse.nodered.org/t/switching-on-off-oven-using-temperature-in-home-assistant/4486/3 "2018-11-02T05:45:10Z")

</div>

Thanks for the tip. This guy has a pretty nifty solution to what you propose: [https://www.google.no/amp/s/thingsmatic.com/2018/01/07/rfxtrx433e-node-red-mqtt-and-home-assistant/amp/](https://www.google.no/amp/s/thingsmatic.com/2018/01/07/rfxtrx433e-node-red-mqtt-and-home-assistant/amp/)

---

<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:** [2 November 2018 09:04 UTC](https://discourse.nodered.org/t/switching-on-off-oven-using-temperature-in-home-assistant/4486/4 "2018-11-02T09:04:27Z")

</div>

As a matter of interest, why do people want to use openHAB _and_ node-RED together? I started with openHAB but the rules engine is horrible (at least for my brain) and when I found node-RED I very happily moved over completely to it.

---

<div class="post-metadata">

**Author:** ![ohj](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@ohj](https://discourse.nodered.org/u/ohj)\
**Post date:** [2 November 2018 09:27 UTC](https://discourse.nodered.org/t/switching-on-off-oven-using-temperature-in-home-assistant/4486/5 "2018-11-02T09:27:53Z")

</div>

I don't - I use Home Assistant. 🙂

But I see your point, given that all of your hardware is supported by Node-RED. But what do you do in regards to display and presenting controls, values and graphs on a front panel?

---

<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:** [2 November 2018 09:52 UTC](https://discourse.nodered.org/t/switching-on-off-oven-using-temperature-in-home-assistant/4486/6 "2018-11-02T09:52:26Z")

</div>

> [@ohj](#):
>
> I don't - I use Home Assistant.

Oh yes, I was conflating the two. Sorry. I haven't used Home Assistant.

For controls, values and basic graphs I use node-red-dashboard (or node-red-contrib-uibuilder for more DIY front end).  
For historical graphs with zoom etc then influxdb and grafana of course.
