publish,any/state/Umweltsensor/Beschattung,0 is being published. "any/state/xxx" is my standard for MQTT-messages in my network.
That is helpful information; Confirms MQTT is configured OK.
but still I get not the result of the average calculation to be published.
See your rule statement at this line:
Code: Select all
publish,any/state/Umweltsensor,[Dummy#Value]
The [Dummy#Value] is suspect here. I expected to see the Generic Dummy plugin, or some device named
Dummy in your device list, but none have that name. That seems to explain the missing MQTT.
See your rule statement at this line:
Code: Select all
TaskValueSet,1,1,([VAR#1]+[VAR#2]+[VAR#3])/3
This seems to be an attempt to write the Average result to the
reboot var, which isn't allowed. Taskvalueset is for writing a value to a Dummy device, which requires the Generic Dummy Device plugin.
So here's what I suggest. Add the Dummy Device Plugin to task position #9 (which is currently empty/available). Name the device
Dummy, with the Value #1 named
Value.
Change the TaskValueSet code to:
Code: Select all
TaskValueSet,9,1,([VAR#1]+[VAR#2]+[VAR#3])/3
No other edits needed at this point. Try it, and if still not working then check the system log for debugging details.
- Thomas