Replies: 12 comments 35 replies
-
Can anybody help me please? |
Beta Was this translation helpful? Give feedback.
-
i am on travel for several weeks without sufficient internet access |
Beta Was this translation helpful? Give feedback.
-
Yeah many Thanks! First Test with scripting works! (2 Values from JSON extracted) Any fix for Rules too?? Thank you and HAPPY NEW YEAR! EDIT: here some debug messages if you need:
|
Beta Was this translation helpful? Give feedback.
-
Hello, i´m sorry, but rules won´t work :( My Ruleset:
Result is, only the LAST SUBSCRIBED Value works! it my case, i only got "sm180" event triggered. and here some WEBLOG 4 data:
Thank You! br hk2k2 |
Beta Was this translation helpful? Give feedback.
-
Ok Thank You. @arends ? do you mean @arendst ? br hk2k2 |
Beta Was this translation helpful? Give feedback.
-
What version of Tasmota should I use with this?
I tried compiling 12.1.1.2 but failed with following error:
```
Linking .pio/build/tasmota-smartmeter/firmware.elf
/home/ubuntu/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/tasmota-smartmeter/src/tasmota.ino.cpp.o:(.text._Z14Run_script_subPKcaP5GVARS+0xa4): undefined reference to `sml_options'
/home/ubuntu/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/tasmota-smartmeter/src/tasmota.ino.cpp.o:(.irom.text.xdrv_interface.ino.21.1989+0x24): undefined reference to `Xdrv10(unsigned char)'
collect2: error: ld returned 1 exit status
*** [.pio/build/tasmota-smartmeter/firmware.elf] Error 1
========================= [FAILED] Took 311.61 seconds =========================
```
|
Beta Was this translation helpful? Give feedback.
-
Ok. Thanks. Will test.
|
Beta Was this translation helpful? Give feedback.
-
yes. i tried with latest DEV too :) |
Beta Was this translation helpful? Give feedback.
-
I've never looked at the rule MQTT subscribe/unsubscribe before but from a quick chk I see you are trying to subscribe three times the same MQTT topic ( MQTT initially looks for a topic. Once detected it starts to act on the contents of the payload. So as you actually only subscribe to The payload to act upon looks like this (I think):
and you want to store the values of fieldpair Pls verify if the latter is the case you're requesting. |
Beta Was this translation helpful? Give feedback.
-
Dev release now supports payloads up to 256 characters accomodating the above shown solution. |
Beta Was this translation helpful? Give feedback.
-
@arendst ,
yes, exact what i try to reach:) @sfromis @arendst |
Beta Was this translation helpful? Give feedback.
-
Wonderful!
result is:
exactly what i need, thanks for your help and suggestions! I appreciate this very much! br hk2k2 |
Beta Was this translation helpful? Give feedback.
-
I am trying to process 3 values from the MQTT JSON payload like this:
stat/tasmota/SENSOR = {"Time":"2022-10-27T19:54:24","ActPw":"588.00","BatV":"54.00","GridV":"233.9"}
I tried following based on examples:
However the script does not seem to pick all three values.
It picks only one value. That is also random, sometimes it picks GridV, othertimes it picks one of the other two. Always one value get correctly populated.
From the mosquitto broker logs, I can see that complete JSON payload (78 bytes) being sent to the device.
What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions