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 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
[mysensors] Not a valid message: invalid literal for int() with base 10: '\x00\x000'
Development • 18 Sept 2024, 20:34 • kiesel 20 Sept 2024, 08:28 -
Sending offset to node
Development • 25 days ago • bsl88k 21 days ago -
Gateways
Development • 6 Feb 2024, 01:16 • OldSurferDude 6 Feb 2024, 14:22 -
MQTT GW on ESP8266 supporting SSL/TLS?
Development • 4 Jun 2024, 10:21 • bgunnarb 27 Jun 2024, 13:53