Simulation components

Hi,

for a project for university I have to simulate different components, for example lights etc.
The problem is that I don’t know how I can simulate this data. Is there some way that I can input data?

Thank you.

OH really isn’t built for driving simulations like this. I would write something external to OH like a python script that drives OH by issuing MQTT messages or changing Item states through the REST API.

Another alternative is to write a simulator using the JSR223 plugin which let’s you write rules in jython, JavaScript, or Groovy.

You could probably get something like this to work with OH rules themselves but it would be way more work.