Possibility to add custom variables
-
Setup: Arduino Dallas temperature sensor, in combination with Vera Serial Gateway.
I'm trying to compare LastTemperature value to CurrentTemperature so I can start the bathroomfan, when temperature rises. Doing so using Vera's 'temperature goes above/below' is too slow. The hot water pipe cools down too slowly.Problem is, there is only 1 variable sent (CurrentTemperature). I can add custom variables to a temperature device in Vera, but can they be updated by my sketch / Vera Arduino nodes? If so how?
-
I have a workaround installed now. It's not pretty though.
Created a second temperature sensor in my sketch and did the mathmetics there also. In Vera I monitor this device for +2 or -2.send(msg.setSensor(0).set(temperature,1)); // Custom temp_diff=temperature-lastTemperature[0]; Serial.println("Temperatures compared: "); Serial.println(temp_diff); send(msg.setSensor(1).set(temp_diff,1));
-
@Knuppel great and creative solution.
3 out of 3
Suggested Topics
-
Controlling Blinds.com RF Dooya Motors with Arduino and Vera
My Project • 24 Mar 2014, 13:27 • petewill 12 Aug 2023, 16:39 -
ota-configuration
Feature Requests • 8 Mar 2023, 09:28 • pbw 8 Mar 2023, 09:28 -
"ZHNetwork" a esp-now based mesh network for ESP8266/ESP32 hardware
Feature Requests • 17 Mar 2023, 07:25 • graffiti 17 Mar 2023, 07:25 -
ESP32 Wired (no WiFi)
Feature Requests • 15 Nov 2024, 10:39 • Marcin 22 days ago -
ESP32 with builtin Ethernet as Gateway - f.e. WT32-ETH01
Feature Requests • 15 Mar 2023, 15:01 • gryzli133 15 Mar 2023, 21:25 -
is there a solution for a relay with button that also works offline?
Feature Requests • 31 Mar 2023, 16:04 • Branther 4 Apr 2023, 11:37