Use "Tele#ANALOG#Temperature1" without WiFi #23682
Replies: 2 comments
-
First, Tasmota is designed to be on a network, either Wifi or Ethernet, and is not fully initialized without a time source, normally NTP, but can also be a local RTC chip, or faked via the When it comes to the hallucination you got from CrapGPT - if you had read the console, you'd have seen why it fails. There is no function Here's a valid piece of code doing the same:
Last line demonstrated the telemetry period trigger working, both with Wifi, Ethernet, faked time alone, or even without any if first "tickling" the telemetry by issuing the |
Beta Was this translation helpful? Give feedback.
-
Yes, i know it, but i use NSPanel as Thermostat, and it should also work offline. def rule_adc(value, trigger) tasmota.add_rule("ANALOG#Temperature1",rule_adc) It work offline |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Please tell me how to get the temperature from an analog sensor without wifi. The "Tele#ANALOG#Temperature1" event is not generated without wifi.
I tryed to do like this (ChatGPT version)
`def poll_temp()
var t = tasmota.sensor("ANALOG")["Temperature1"]
import string
var sf = string.format("%0.1f" + '°',t)
print("Temperature: " + sf)
set_temp(t)
end
tasmota.add_rule("Time#Minute", poll_temp)`
but it not work.
Beta Was this translation helpful? Give feedback.
All reactions