From 9e0ff35f1ba1096863e98b36765ccaf2f4c67938 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 14 Dec 2023 14:58:03 -0600 Subject: [PATCH] Create getInfo.tasmota.py --- inc/getInfo.tasmota.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 inc/getInfo.tasmota.py diff --git a/inc/getInfo.tasmota.py b/inc/getInfo.tasmota.py new file mode 100644 index 00000000..2275ddf2 --- /dev/null +++ b/inc/getInfo.tasmota.py @@ -0,0 +1,11 @@ +import pylacrossapi + +device_id = sys.argv[1] +unit_measure = 0 +time_zone = 2 +lacrosse_device = pylacrossapi.lacrosse(device_id, unit_measure, time_zone) +device1 = lacrosse(device_id,unit_measure,time_zone) +device_info=device1.getObservation(1) +# print device_info + +