rule "ip address Downlights"
when
Item FrontDownlight_IP received command
then
val IPStringdownlights = FrontDownlight_IP.state.toString.split(",")
FrontDownlight_IP_String.postUpdate(IPStringdownlights.get(1))
end
OK, there is a way to get this directly from the mqtt binding with the JSONPATH transform
It is a very powerful tool to extract values from json strings
See:
Just reading up on the sonoff devices. you can actually send IPAddress1 as a command and it responds with just that string. which works great.
Still you helped me though marked as complete