Beginner questions Control electric heating

Hi, I’m a beginner in HA and all what comes with it.

Current setup RPI4 and FRXcom 433xl

Need to buy for this setup
Aeotec Z-wave controller
USB hub
Aeotec nano switch
Xiaomi Mijia Bluetooth Temp sensor
IR heating panel

What i want is to control the IR heating panel with HA and use the Xiaomi Temp sensor to control the heat.

The challenge is that i want to enable the IR panael, with the Aeotec switch, when I’m in the room and disable when I leave the room.

The Xiaomi must control the IR panel with turning on/off the Aeotec switch.

A couple of questions.

  1. How can i make a button “toggle” in HA that will turn off the IR panel(Aeotec swich) and doesnt make it listen to the Xiaomi temp sensor
  2. How can i make the Aeotec switch make the IR panel turn on and off by temperature x

Example I enter the room and turn on IR panel with HA and it heat up to 20C and turn off by 21C and when I leave the room I turn off the IR panel via HA and it doesnt listen to the temp sensor anymore.

  1. When you integrate the aeotec switch in to home assistant it will appear as a toggle switch like this:

You would use that to turn the IRpanel on and off as you please.

  1. Create an input_boolean in home assistant.
    It will also appear as a toggle switch as pictured above.
    This switch will act as Auto/Man for your IRpanel control.

Create an automation with the trigger being your required temperatures, but with a condition that the auto/manual input_boolean must be in the Auto position.

Thanks for this simple explanation.

I will order it and try it. It answers most of my questions.