Mysensors Thermostat
-
I'm making a thermostat with mysensors
define CHILD_ID_HEATER 0
MyMessage msgHeater(CHILD_ID_HEATER, V_HEATER_SW);
MyMessage msgTemp(CHILD_ID_HEATER, V_TEMP);
MyMessage msgUp(CHILD_ID_HEATER, V_UP);
MyMessage msgDown(CHILD_ID_HEATER, V_DOWN);void setup()
{
gw.begin(incomingMessage, NODE_ID, false); //nodo 6
gw.sendSketchInfo(SN, SV);
gw.present(CHILD_ID_HEATER, S_HEATER);
gw.send(msgTemp.set(tempVera));
.....V_HEATER_SW has the current temperature, turn off the power and heat button and two buttons + and - inside the threshold temperature
with gw.send(msgTemp.set(tempVera)); I send temperature to vera
with gw.send(msgHeater.set("Off"),true); and gw.send(msgHeater.set("HeatOn"),true); send to vera off ed heaton.My BIG problem:
how do I send through two buttons on Arduino + and - on Vera?if(digitalRead(BUTTON_PIN_MENO) == HIGH)
{
//send - to vera
}if(digitalRead(BUTTON_PIN_PIU) == HIGH)
{
//send + to vera
}Thank Gigi
-
You'll have to investigate the vera thermostat device files to find this information.
It might be some missing commands for this as you are pioneer here.
-
seems as easy as a temp sensor and a couple relays.......now making a neat looking virtual display to use.....
-
i am realy interested in this
wil keep a eye on this topic
been searching for a way to make a thermostat that can be managed localy and with domoticz
-
I don't know about domoticz but I reacently put together a Thermostat device that I use with Vera UI5.
I posted about it here and here
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Home Assistant/MySensors quirks
Development • 29 days ago • OldSurferDude 29 days ago -
PJON and Minicore not working
Development • 24 days ago • Trand 24 days ago