I want to send an item value to a dummy device on a nodemcu with espeasy firmware. To achieve this I’m trying to write a rule that send the actual item value whenever it changes. The only obstacle I’m still facing is that I cannot seem to figure out how to enter the float value inside the URL construction.
This is my first try. (not working). The last parameter is the one that I need to send.
rule "send-mqtt-to-espeasy"
when
Item Yield_DayTotal changes
then
sendHttpGetRequest("http://192.168.1.32/control?cmd=taskvalueset,4,1,"Yield_DayTotal.state as DecimalType"")
end
@rossko57 thank for your quick reply. However, my value needs to be at the end of the URL string. How would one solve this? I’m not succeeding in finding the right syntax
Want a different order?
SomeString = partA + partC + partB
Want less parts?
SomeString = partX + partY
Some parts are literals, some variables or Item states?
SomeString = variableFred + " banana " + myItem.state.toString