Good morning,
I am a complete newbee in regards to python integration into OH, but at the moment I am trying out the rest-api for HomematicIP cloud. So far all is fine and I am able to read my different devices and ask for the state in a python script, but now I am struggeling with the approach to feed those data into OH2.
When calling my python script (see below extract of a function)
def write_heatingthermostat(room,device):
print(room, " ", device.label, " ", device.lastStatusUpdate, " ", device.valveActualTemperature, " ", device.valvePosition, " ", device.setPointTemperature, " ", device.temperatureOffset, " ", device.valveState, " ", device.id)
I have different variables available available (at the moment they are printed in that example).
How can I achieve to push the different variables e.g.
device.label
device.valveActualTemperature
device.setPointTemperature
into items of OH2 without calling three different py scripts, one per item and variable?
Thanks for your help.
Scuby