A Wifi Plug and 2 rules to make an electric heater thermoregulator that can be set remotely.
Application April 6, 2022
Let's control an electric heater connected to a WiFi socket which also measures the ambient temperature.
The desired temperature can be set using the means we prefer: SMS, chat messages, email, cloud...
We can use Avior.Suite software by connecting Avior to a Personal Computer with the appropriate USB cable or accessing the device's account cloud by entering the identification (WebId) and password.
Let's configure the WiFi A socket: insert the MAC address and assign the name heater.
We assign the name setpoint to variable 2 and set an initial value of 20, this will be the set temperature and can be changed simply by sending the command setpoint=XX (where XX is the temperature) from any source.
Let's add 2 simple rules.
Here is a short video on how to insert rules from the cloud management platform.
You can see the status of WiFi Plug A and related information on the web panel
from which you can also see the energy log you saved in SWAP AREA (also accessible via API).
Each line contains the energy consumed during the period in which the socket was on, you can obviously enrich this information by adding a line when the socket is switched on or other information relating to the socket or any other parameter available in Avior.