arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.73k stars 4.72k forks source link

Events and arrays with mqtt #21357

Closed 13 closed 2 months ago

13 commented 2 months ago

PROBLEM DESCRIPTION

I'm not able to trigger ENERGY.Power[1] over mqtt.

I tried without success following 2 approaches:

Subscribe PowerTotal, tasmota/tele/tasmota_5FF8B2/SENSOR, ENERGY.Power
Rule3 ON Event#PowerTotal[1] DO var1 %value% ENDON

Subscribe PowerTotal, tasmota/tele/tasmota_5FF8B2/SENSOR, ENERGY
Rule3 ON Event#PowerTotal#Power[1] DO var1 %value% ENDON
tasmota/tele/tasmota_5FF8B2/SENSOR
{"Time":"2024-05-05T13:27:21","ENERGY":{"TotalStartTime":"2024-05-01T11:36:59","Total":31.043,"Yesterday":7.154,"Today":3.322,"TodaySumImport":1.141,"TodaySumExport":0.001,"ExportActive":[0.000,0.000,0.000],"Power":[11,0,0],"ApparentPower":[181,0,0],"ReactivePower":[181,0,0],"Factor":[0.06,0.00,0.00],"Frequency":[50,49,53],"Voltage":[231,0,0],"Current":[0.785,0.013,0.013],"CurrentNeutral":0.008}}

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)