Concatonating strings and variables in a rule

Example -
var String ChromecastDeviceName = "whatever " + someStringVar + " fred"

That won’t work, strings do not have a send command method.

The tools you need are here -