Announcement

Collapse
No announcement yet.

OWFS server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    My plug-in performs queries of the XML data to get the sensors supported. If you're creating custom sensor types in the XML output, then I'll need to add support for them. Please send me the complete XML for all sensors and I'll add support for them (assuming they are temperature, humidity, counter, light or pressure sensors).

    Regards,
    Ultrajones
    Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

    Comment


      #17
      Thank you Randy.

      Just standard temperature, combo temperature/humidity, counters (dual).

      Been purchasing these sensors since the 1990's.

      AAG, Midon and Hobby board sensors. Last bulk purchase was of the midon pc boards with no sensors on them a while ago.

      So currently in the testing RPi owfs / digitemp configuration have 6-7 sensors.

      The PHP file just grabs the listed sensors via OWServer.

      Still wanting to add more combo sensors to the RPi. Only connecting the one dual counter sensor for lightning counts.

      Second RPi will be installed in the basement for temperatures, humdity sensors on the main floor and basement.

      digitemp -a -q -c /etc/digitemp.conf

      28CFD8F4020000F5 : DS18B20 Temperature Sensor
      268CC814000000DC : DS2438 Temperature, A/D Battery Monitor
      26993AF50000008F : DS2438 Temperature, A/D Battery Monitor
      26B3CA1400000096 : DS2438 Temperature, A/D Battery Monitor
      263B3AF5000000BD : DS2438 Temperature, A/D Battery Monitor
      1D37C907000000FC : DS2423 4Kbit RAM + Counter (dual counter) .Also use a dual counter for two water meters.

      ROM #0 : 28CFD8F4020000F5 attic
      ROM #1 : 268CC814000000DC bathroom
      ROM #2 : 26993AF50000008F hallway
      ROM #3 : 26B3CA1400000096 master bedroom
      ROM #4 : 263B3AF5000000BD office
      ROM #5 : 1D37C907000000FC lightning

      For the attic may add 3 more combo sensors for the 2nd floor.

      My favorite combo temperature / humdity sensors are the old AAG's which are tiny. The four above are the old AAG combo sensors....smallest footprint for me.

      Over the years have purchased much of the 1-wire stuff. (~20 years of this stuff).

      I also have 4 Temp08's and 2 Temp05's but want to reduce the footprint of this stuff and just put it on the network. (and multiple Maxim RS-232 9097, USB 9097's here).

      I am using the USB 9097 to test with. It is using the same design except it uses two stereo jacks for the 1-wire connections.

      For the above testing PHP file it is just a PHP script written to emulate the OWServer XML file written to work with the Vera device so you do not need to purchase an OWServer.

      The Domoticz also utilizes the standard OWServer files but reads them in Lua. (C based).

      My last test created an XML file as documented in the EDS XML file example above. The plugin did not create any variables (well one) from said EDS details.xml file example above.

      I have not yet created an XML file with humidity and counters...just using the example PHP file to create temperature sensors...which plugin is not reading.

      Figured if the plugin doesn't read the temperature sensors then it will not read any of the humidity or counter sensors.

      So for a temperature sensor it prints out to XML file:

      28CFD8F4020000F5 : DS18B20 Temperature Sensor ROM #0 : 28CFD8F4020000F5 attic

      <owd_DS18B20 Description="Programmable Resolution Thermometer">
      <Name>DS18B20</Name>
      <Family>28</Family>
      <ROMId>F5000002F4D8CF28</ROMId>
      <PrimaryValue>31.4375 Deg C</PrimaryValue>
      <Temperature Units="Centigrade">31.4375</Temperature>
      </owd_DS18B20>

      For the combo sensors right now it is only reading the humidity value (first of two per sensor) as I have not changed the PHP file to look for the humidity sensor.

      If I could see the owserver standard xml value for the DS2438 I can change the PHP file to be the same.

      <owd_DS2438 Description="Smart Battery Monitor">
      <Name>DS2438</Name>
      <Family>26</Family>
      <ROMId>DC00000014C88C26</ROMId>
      <PrimaryValue>38.1989 Deg C</PrimaryValue>
      <Temperature Units="Centigrade">38.1989</Temperature>
      </owd_DS2438>

      For one of two counters it shows:

      <owd_DS2423 Description="Parasite power counter">
      <Name>DS2423</Name>
      <Family>1D</Family>
      <ROMId>FC00000007C9371D</ROMId>
      <PrimaryValue>10759 Deg C</PrimaryValue>
      <Temperature Units="Centigrade">10759</Temperature>
      </owd_DS2423>

      The owserver program has a owread function to read any of the values presented by the owserver
      Last edited by Pete; July 23, 2017, 07:41 PM.
      - Pete

      Auto mator
      Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
      Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
      HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

      HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
      HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

      X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

      Comment


        #18
        Appreciate this is an old thread but did you guys ever get this working. I’ve just set up my pi with ow server and wanted to use an existing plugin rather than hand rolling something.

        Comment


          #19
          Here used the OWFS server on the RPi and it worked fine. Randy's plugin is a bit proprietary to the EDS embedded firmware OWFS stuff.

          - Pete

          Auto mator
          Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
          Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
          HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

          HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
          HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

          X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

          Comment


            #20
            Pete,
            How did you link it to the Homeseer server in the end, if you didn't use Randy's plugin. My OWFS is all running fine it would appear so now keen to integrate it. I was planning on following your route of emulating the EDS device which on the face of it seemed quite easy to do, but the devil is in the detail as you seem to have discovered when you tried to do the same.

            Comment


              #21
              Thinking at the end I just used a text file read which was converted to a Homeseer variable and then quit using the OWFS server going to MQTT.

              Here is an easy way to convert OWFS to MQTT.

              OWFS-to-MQTT-gateway
              - Pete

              Auto mator
              Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
              Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
              HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

              HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
              HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

              X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

              Comment


                #22
                Thanks for the link, very helpful.

                Comment


                  #23
                  It would be great to install the OWFS library on some WiFi device with Tasmota or Espurna with a 2MB chip. I think we are almost there now.

                  Currently here running two SonOff basics with 10 DS18B20's and a couple SonOff basics with combo Temperature / Humidity sensors using new 1-Wire network.

                  I have left in place the old Midon Temp05-08 devices but do not really utilize these much anymore. (have the old AAG weather station, Dallas tipping bucket, digital rain sensor, et al).

                  Old 1-wire cabling was using cat5e to punch panels and a star distribution with worked.


                  - Pete

                  Auto mator
                  Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                  Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                  HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                  HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                  HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                  X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                  Comment


                    #24
                    Here is a quickie view of the 1-wire temperature sensors running using MQTT (and thermostat) on Home Assistant and Homeseer.

                    Click image for larger version  Name:	1-wire.jpg Views:	0 Size:	77.3 KB ID:	1427885

                    Click image for larger version  Name:	1-wire.jpg Views:	0 Size:	44.1 KB ID:	1427764
                    Using the OWFS==>MQTT server (on the RPi2 ZNet like server) going to reconnect my old 1-wire Lightning counter, Dallas rain bucket...or install it on my newer RPi Lightning sensor.

                    Currently also running a Blitzortung Lightning plugin and a AS3935 Lightning Detector Sensor to MQTT.
                    - Pete

                    Auto mator
                    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                    Comment

                    Working...
                    X