I’ve tried all sorts of searching and can’t figure this out. I’m trying to make a script that does, in part, send a command to a device via MQTT. It works manually in MQTT and in the user interface of OB3 via a payload of command to the url myserver/rest/items/myitem. I want to write a script that does that and its not working.
All of my thoughts go to myitem.sendCommand(command) and that just isn’t working. I think there has to be an obvious and simple solution but I’m just not finding it. I would appreciate any help or nudges in the right direction.