Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. PiDome
  4. PiDome Domotica/Home Automation

PiDome Domotica/Home Automation

Scheduled Pinned Locked Moved PiDome
controllerserialgatewayraspberrymqttpidome
199 Posts 17 Posters 110.7k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fogsvans
    wrote on last edited by
    #77

    First of all - great work with PiDome!

    I've been trying to create a Custom device with a color picker but I always get following message:
    error.png
    and in appLog this appears:
    applog.png

    1 Reply Last reply
    0
    • tbowmoT Offline
      tbowmoT Offline
      tbowmo
      Admin
      wrote on last edited by tbowmo
      #78

      Tried to use the xbmc 13 media plugin, but after enabling it, it shows up as XBMC 12 in media plugins. Also my XBMC box tells me that a version 12 client is connecting to it.

      Also, I noticed that it only shows "playing" state, when I'm watching a movie from local storrage. If I watch live tv, or use a streaming plugin, it seems that pidome doesn't know about it. Is this because of lack of functionality in xbmc protocol?

      / Thomas

      1 Reply Last reply
      0
      • JohnJ Offline
        JohnJ Offline
        John
        Plugin Developer
        wrote on last edited by John
        #79

        The above both are correct, As long as the server is an Alpha version all supplied downloads are automated this also means any test build is also supplied.

        The color picker error is due to the fact the color picker is currently being modified to support different color schemes and color set possibilities. It was set to only accept hex parameters. This is being changed to HEX, RGB, HSB and Kelvin with color modes: HSB, HSL, CIE and RGB. So this control is currently heavily being overhauled and also in snapshot state.

        The functionalities of XBMC 12 and 13 regarding exposed for base XBMC 12/13 functionalities are the same. It is correct that the streams and live TV are not included yet. I have created a request at: https://bitbucket.org/pidome/pidome-server/issue/133/extend-xbmc-plugin-func to extend the features. The build server does have an updated version where correct plugin usage is shown.

        I do suggest to keep an eye on http://builder.pidome.org/view/Snapshot builds/job/PiDome Server platform snapshot build/ and report bugs/issues found not related to MySensors on https://bitbucket.org/pidome/pidome-server/issues?status=new&status=open

        My Domotica project: http://www.pidome.org

        1 Reply Last reply
        0
        • tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by
          #80

          @John
          I tried the "latest" snapshot (downloaded today at 20:30 CET).
          After starting pidome up, went to the peripherals page, I then connected the mysensors gateway (arduino nano with the default serial gateway sketch) to my raspberry. Nothing happens in pidome at all..

          Shouldn't it popup with something about the new peripheral that was attached?

          Regards
          Thomas

          JohnJ 1 Reply Last reply
          0
          • tbowmoT tbowmo

            @John
            I tried the "latest" snapshot (downloaded today at 20:30 CET).
            After starting pidome up, went to the peripherals page, I then connected the mysensors gateway (arduino nano with the default serial gateway sketch) to my raspberry. Nothing happens in pidome at all..

            Shouldn't it popup with something about the new peripheral that was attached?

            Regards
            Thomas

            JohnJ Offline
            JohnJ Offline
            John
            Plugin Developer
            wrote on last edited by
            #81

            @Thomas-Bowman-Mørch

            Hi Thomas, Yes it should, also security has been tightened in the server which in some cases causes the real time web interface updating to fail. Does clicking the peripheral pages again show the nano? Also is the nano a clone or the real thing?

            My Domotica project: http://www.pidome.org

            1 Reply Last reply
            0
            • tbowmoT Offline
              tbowmoT Offline
              tbowmo
              Admin
              wrote on last edited by
              #82

              @John

              Yeah, did also notice that it asks for user/password when opening the PiDome admin interface now. Nice thing :)

              Tried to reload the page, etc.but it didn't help.

              The gateway is a clone, with a PL2303 as usb->serial gateway.. I noticed that the real nano is using a ftdi chip.

              Does PiDome check the VID/PID of the usb device, in order to figure out what it is?

              / Thomas

              JohnJ 1 Reply Last reply
              0
              • tbowmoT tbowmo

                @John

                Yeah, did also notice that it asks for user/password when opening the PiDome admin interface now. Nice thing :)

                Tried to reload the page, etc.but it didn't help.

                The gateway is a clone, with a PL2303 as usb->serial gateway.. I noticed that the real nano is using a ftdi chip.

                Does PiDome check the VID/PID of the usb device, in order to figure out what it is?

                / Thomas

                JohnJ Offline
                JohnJ Offline
                John
                Plugin Developer
                wrote on last edited by
                #83

                @Thomas-Bowman-Mørch

                Hi Thomas, yes it does. A feature build in is that users won't have to do anything if a specific device is connected via USB. It will then give the user the possibility to choose a driver based on the vid/pid in this example usb-serial so you should get the option to set serial options.

                An example: When a specific RFXCOM device is supported with fixed settings and connected to usb the server will autoload everything for this device and the end-user would only have to add devices.

                There is an interface on it's way that when an vid/pid is not recognized the server will check what kind of usb device it is and present the possible options for this device. You can then set the appropriate driver type and this then will be stored on the server. So every time this specific device is connected you will be presented with the correct device options. Also in the future we will build a webservice which will be capable of sharing vid/pid driver types and download appropiate drivers if the user wishes to do so.

                To make a long story short, what vid/pid is it using so it can be added as default known?

                My Domotica project: http://www.pidome.org

                1 Reply Last reply
                0
                • tbowmoT Offline
                  tbowmoT Offline
                  tbowmo
                  Admin
                  wrote on last edited by
                  #84

                  @John
                  Thanks John...

                  The usb vid/pid is as follows

                  idVendor 0x067b Prolific Technology, Inc.
                  idProduct 0x2303 PL2303 Serial Port

                  taken from lsusb -v

                  / Thomas

                  1 Reply Last reply
                  0
                  • JohnJ Offline
                    JohnJ Offline
                    John
                    Plugin Developer
                    wrote on last edited by
                    #85

                    @Thomas-Bowman-Mørch It wil be included in the next build (411, current is 410). This one will be build tomorrow, let me know how the device handles.

                    My Domotica project: http://www.pidome.org

                    1 Reply Last reply
                    0
                    • tbowmoT Offline
                      tbowmoT Offline
                      tbowmo
                      Admin
                      wrote on last edited by
                      #86

                      I patched the database in my install, by taking the sql update file you created for my device, and changing the db schema.

                      I can now add mysensors to pidome! Yahoo! :)

                      Next step is to get something usefull done with it

                      / Thomas

                      1 Reply Last reply
                      0
                      • JohnJ Offline
                        JohnJ Offline
                        John
                        Plugin Developer
                        wrote on last edited by John
                        #87

                        Good! Did you do this manual or just stopped, overwritten and restarted the server? The latter would have precedence ;). Updating happens automatically.

                        If you did this manual make sure to execute

                        PRAGMA user_version=4;
                        

                        in the SQL editor to make sure the DB is consistent with the configuration file otherwise the server will keep on trying update the database. To check the version you can run "PRAGMA user_version;" without the "=4" to see which version it currently is.

                        Report any findings you have so i can make the plugin better!

                        My Domotica project: http://www.pidome.org

                        1 Reply Last reply
                        0
                        • tbowmoT Offline
                          tbowmoT Offline
                          tbowmo
                          Admin
                          wrote on last edited by
                          #88

                          I shutdown the server, put the file 4.sql in the Database/private/update directory, also updated mysensors.default.config to reflect latest db version, and then restarted the server.

                          In the meantime while trying to add sensors, I have replaced the entire pidome with the latest snapshot build. But it still gives me grey hairs trying to trying to figure out how to add the first temperature sensor node (based on the dalas ds18s20 demo sketch comming with mysensors code). It has two dalas chips, so reporting two temperatures, gw.present(0, S_TEMP); gw.present(1, S_TEMP);

                          In PiDome, I have created a custom sensor, with two groups (0 and 1), each having a datafield configured as:
                          Control ID: 0
                          Control name: Temperature
                          Datatype : Float
                          Graph : timeseries (average)
                          Suffix : C
                          Floormap type: Temperature

                          After adding the mysensor node, with this custom sensor description, I then go to "Control/Views" and "Devices" clicking on my new sensor, it repports 0C for both sensors, The timestamp is updated to the time that the node last send in it's temperature.

                          I can't seem to figure out why it repports 0 as temperature. Looking at the data from the gateway with minicom (while server is shutdown), it does repport correct temperatures for both sensors attached to the remote node.

                          Am I doing things wrong here, or have I found a unknown "feature"?

                          / Thomas

                          1 Reply Last reply
                          0
                          • JohnJ Offline
                            JohnJ Offline
                            John
                            Plugin Developer
                            wrote on last edited by
                            #89

                            @tbowmo The control id should be the V_VAR naming and the control id you have used as group id.

                            More info can be found at: http://pidome.wordpress.com/2014/08/10/added-partly-mysensors-org-wireless-devices-support-api-1-4-beta/

                            My Domotica project: http://www.pidome.org

                            1 Reply Last reply
                            0
                            • tbowmoT Offline
                              tbowmoT Offline
                              tbowmo
                              Admin
                              wrote on last edited by
                              #90

                              That did it.. Changed the control id, to V_TEMP on both temperature data fields

                              And now I am able to get temperature measurements..
                              :)

                              JohnJ 1 Reply Last reply
                              0
                              • JohnJ Offline
                                JohnJ Offline
                                John
                                Plugin Developer
                                wrote on last edited by John
                                #91

                                Good to hear! :+1:

                                Uhmm.. read...

                                My Domotica project: http://www.pidome.org

                                1 Reply Last reply
                                0
                                • tbowmoT tbowmo

                                  That did it.. Changed the control id, to V_TEMP on both temperature data fields

                                  And now I am able to get temperature measurements..
                                  :)

                                  JohnJ Offline
                                  JohnJ Offline
                                  John
                                  Plugin Developer
                                  wrote on last edited by
                                  #92

                                  @tbowmo

                                  Regarding the update method you did

                                  "I shutdown the server, put the file 4.sql in the Database/private/update directory, also updated mysensors.default.config to reflect latest db version, and then restarted the server."

                                  Could possibly mess things up.

                                  This method:
                                  "I have replaced the entire pidome with the latest snapshot build" can also be "I have overwritten the entire pidome with the latest snapshot build". The last method will auto-update.

                                  With a database update there also is an high possibility of changes in code. Fortunate DB structure update version 4 only adds data ;)

                                  My Domotica project: http://www.pidome.org

                                  1 Reply Last reply
                                  0
                                  • tbowmoT Offline
                                    tbowmoT Offline
                                    tbowmo
                                    Admin
                                    wrote on last edited by
                                    #93

                                    @John
                                    Well i'm still testing things out, so if something goes wrong, I delete everything (including databases), and start all over again.. That was what I meant by "I have replaced the entire pidome with the latest snapshot build" :)

                                    Still experimenting with adding sensor nodes. Think I have to solder up a couple of extra nodes, just to have something to generate input, and to send some output to (Have the parts ready for 4 more nodes)

                                    / Thomas

                                    1 Reply Last reply
                                    0
                                    • tbowmoT Offline
                                      tbowmoT Offline
                                      tbowmo
                                      Admin
                                      wrote on last edited by
                                      #94

                                      One thing that is a bit unclear to me..

                                      If I have a node with 3 temperature sensors on. They are made with gw.present(0, S_TEMP); gw.present(1,S_TEMP)...

                                      This node also functions as a thermostat, using sensor 0, so when temperature is below setpoint make output go high

                                      Now in pidome, I have made a sensor node with 3 groups (1 for each S_TEM), each one of them defines one datafield with V_TEMP as ID.

                                      I also want to be able to set the target temperature for sensor 0 on the node (that is, the node itself turns on the heater until desired temperature is reached)

                                      How should I define this in pidome? Should I make a new group, and attach a slider to that one, in order to set a value in the node? Because I can't see any option to send a datafield value to the node.

                                      / Thomas

                                      1 Reply Last reply
                                      0
                                      • JohnJ Offline
                                        JohnJ Offline
                                        John
                                        Plugin Developer
                                        wrote on last edited by
                                        #95

                                        @tbowmo Sorry for the late response, was at a conference yesterday.

                                        It depends on how to interpret the value to be send. If you want to let the node control the heater, you should on the node create for example a threshold vairable let's say "int trigger value". If you would create a VAR_1 control which can be a slider in the node 0 group of type int and set a minimal value of 0 and max value of for example 50, you will be able to send a value to the node between 0-50.

                                        On the node you should listen for incoming data for sensor 0, with variable VAR_1. and store it in the var on the node.

                                        When you change the slider values the value is immediately send.

                                        My Domotica project: http://www.pidome.org

                                        1 Reply Last reply
                                        0
                                        • JohnJ Offline
                                          JohnJ Offline
                                          John
                                          Plugin Developer
                                          wrote on last edited by
                                          #96

                                          I know it has should been added earlier, but you can now add battery level to a device added to the server.

                                          When you are creating your own device in the visual device editor do the following to show the battery level:

                                          • Drag an drop a group to the device declaration field. You can give it any name you want, but the group id must be named "INTERNAL"(capital letters without the " (quotes)).
                                          • Drag and drop a data field control to this group. You can give it any name. but the id must be "I_BATTERY_LEVEL" (also without the quotes).
                                          • Set the datatype to "FLOAT". All battery levels in the server are handled this way.
                                          • If you want, you can select "Battery (0-100%)" as a visual type. This is for future references when the server is able to report low battery levels to users and visualize this in clients.

                                          That's it.

                                          Cheers,
                                          John.

                                          P.S. We are on a level where we can start defining an online servers for users to share custom devices. We hope to have this available in a month or 2/3. So if you then create a MySensors node and added a custom device on the server. You can share this custom device setup with others also creating your MySensors node.

                                          My Domotica project: http://www.pidome.org

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          13

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular