openhsorg / openhs

OpenHS - core modules
0 stars 0 forks source link

Dummy support of Thermometer and Contact #37

Closed fmikulu closed 7 years ago

fmikulu commented 7 years ago

Enhanced dummy support, see: branch DummyUpd, file https://github.com/openhsorg/openhs/blob/master/modules/org.openhs.core.cfg/openhs/dummy/dummyDeviceMapping.json Don't forget to copy/update in your ${HOME} Please verify if it works with Switch objects, if yes, merge to master

    {
      "Addr": 0,
      "Type": "Thermometer",
      "Period": 10000,
      "Max": 30.0,
      "Min": 15.0,
      "Step": 1.0,
      "Init": 22.0
    },
    {
      "Addr": 0,
      "Type": "ContactSensor",
      "Period": 9000,
      "Init": true
    }

Period is refresh period [ms] Max/Min max/min values Step refresh step Init init value

fmikulu commented 7 years ago

Works with Switch objects well, merged to master