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 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51