How to use real sensor values from ESP in Berry code #17911
-
|
I need to use multiple DS18B20 temperatures in my Berry code calculations. These are local sensors, not from MQTT messages. tasmota.add_rule("DS18B20-1",rule_dsb) but console says |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Since your error message says line 399, look at that line in context, not visible above. And I don't think that you need Anyway, I'd recommend you to not use that string splitting technique, but use the already parsed JSON into a map data structure. Much nicer that way. Like this: |
Beta Was this translation helpful? Give feedback.
-
|
Yes import tasmota is not required. I tried tasmota.add_rule('DS18B20-1'..... and the error disappears |
Beta Was this translation helpful? Give feedback.
Yes import tasmota is not required. I tried tasmota.add_rule('DS18B20-1'..... and the error disappears
Does this give me variables I can use to calculate the required setpoint, it will be (DS18B20-1 +5'C from sunrise until 13:00 then shift gradually to DS18B20-2 +10'C at sunset) when DS18B20-3 exceeds setpoint then turn on relay
Hysteresis to be sorted later