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.
  • JohnJ John

    @dafoink
    Communication with a plain Arduino using USB it currently needs to be programmed in the server. Methods to do things like ping/pong will be eventually possible using the web interface.

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

    I have added colorpicker support to the serial version of MySensors, When it has proven itself it will be added to the MQTT version as wel.

    I have tested this with one user and he has confirmed it working.

    It works as follows:
    Add a color picker to the controls as you would do with any other control (data/toggle button/etc..).

    There are three color modes, these are only used for how the color picker behaves in the interfaces. These are:

    • RGB - Shows three sliders: red, green and blue, use these to choose a color.
    • HSL - Shows three sliders: Hue, Saturation and lightness. Different with the RGB is that you can turn lightness to 0 ti simulate lights off.
    • CIE (Lch)- Shows three sliders: Lightness, hue and chroma, use this with calibrated fixtures, it can be quite off.

    Colors are send as RGB string to nodes without the number sign (#). I recommend using V_VAR(1-5) as the variable type as it is custom data.

    You also need a minimum of one button added in the colorpicker settings window. This will add a button so the selected color in the color picker will actually be send. The value is not important but must be filled in.

    Below an screenshot as an example of how to set up:

    http://s9.postimg.org/k1qvy23f3/Capture1.jpg

    Code for retrieving the r,g and b from the send string is available in this post: http://forum.mysensors.org/topic/816/send-color-data-to-sensors/14
    I personally have not tested the code (currently occupied hardware).

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

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

      This is an important message for all MySensors PiDome users.

      Oracle has released an update for Java on ARM. This update is numbered: Java 8 Update 33. But this release has features removed which the alpha builds are utilizing. I was busy with a feature to supply a graphical user interface embedded in the server so the Raspberry Pi could be used as server and client at the same time (slimmed down version).

      Because Oracle decided to remove JavaFX from this update, and i have JavaFX test code within the server, this update will completely $#%$ PiDome so it won't run correctly, or wont run at all.

      I have to remove all JavaFX related code from the server before you guys can upgrade to the new Java Release. I'm sorry for any inconvenience if you really need to upgrade Java.

      I will place a message in this thread when i have fixed it.

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

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

        Have been quite busy the last two days to remove any possibility to run the server with an embedded client. So you are save to update again. The latest version with the "fixes" is available on http://builder.pidome.org/job/PiDome Server platform snapshot build/lastSuccessfulBuild/ .

        All though all dependencies have been removed it could show a quirk here and there, but will not influence server inner workings.

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

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bomber
          wrote on last edited by
          #180

          Hi John!

          Can You tell, is it possible to show battery level and sketch name and version in PiDome? How to describe this information under custom device?

          Thanks in advance

          Vj

          JohnJ 1 Reply Last reply
          0
          • B bomber

            Hi John!

            Can You tell, is it possible to show battery level and sketch name and version in PiDome? How to describe this information under custom device?

            Thanks in advance

            Vj

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

            Hi @bomber

            Battery status can be done this way:

            1. 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)).
            2. 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.
            3. 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.

            Sketch name and version is not available, let me see how quick this can be added (if it is a quick add will do it immediately, otherwise it get's a position on my to do list, recent (unfortunate) developments are requiring a lot of my time).

            Cheers,

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

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

              @bomber

              I_SKETCH_NAME and I_SKETCH_VERSION have been added, only currently they only appear after a device has been added and is restart (during presentation and the device is known in the server).

              I currently do not have the time to have a persistent solution where the values are remembered during discovery (inclusion). Group id for both is also "INTERNAL" and the control id's must be I_SKETCH_NAME or I_SKETCH_VERSION. The data type is String.

              P.S. it is currently builing on the build server, give it a couple of minutes.

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

              1 Reply Last reply
              0
              • AndrewBA Offline
                AndrewBA Offline
                AndrewB
                wrote on last edited by
                #183

                Hi John,

                I'm pretty new to PiDome and MySensors but I've been gradually figuring things out. However I can't get the battery information to display in PiDome. I followed your instructions you gave above but it never receives the information even though I can see it being sent via the com port on my pc. Has the method of receiving the battery information changed in the last 7 months since you posted this?

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

                  Hi @AndrewB

                  As far as i'm concerned the methods for displaying battery status have not been changed. it could have been changed between some days seven months ago.

                  Are you using group id "INTERNAL" and control id "I_BATTERY_LEVEL" ?

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

                  1 Reply Last reply
                  0
                  • AndrewBA Offline
                    AndrewBA Offline
                    AndrewB
                    wrote on last edited by
                    #185

                    Yes I am. I have checked and double checked. I am using the default BatteryPoweredSensor sketch that is included in the MySensors library.

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

                      It currently is quite late i will test this tomorrow as i also have some resource available then. I have to get some hardware together, if i find everything quick will test it in a moment for you. I need some info from you though:

                      What is your current build number being used (see server settings page)?
                      What is the mysensors library version you are using, 1.4 or 1.5?

                      Cheers!

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

                      1 Reply Last reply
                      0
                      • AndrewBA Offline
                        AndrewBA Offline
                        AndrewB
                        wrote on last edited by
                        #187

                        Thanks for doing that! No rush though.

                        I am using build number 0.1-SNAPSHOT-2015-08-25.528

                        and Mysensors ver 1.5

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

                          Oh dear, we are already at build 540 for the server with full platform build at: 0.1-snapshot-2015-09-05.746. The next server build version will probably stay at 540 but the platform number will become 747. I will notify here when there is an update.

                          Build 747 will require you to update the android, desktop or raspberry pi client if in use, so be prepared ;)

                          Cheers.

                          [EDIT]
                          I can confirm the battery level is not handled correctly. I'm on it now. The issue is that the data type is not handled correctly. If you would have used something else then float it would not work. I'm doing an explicit cast to float and did not respect the set type as set in the device editor. Currently testing and updating.
                          [/EDIT]

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

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

                            There currently is a new version of the server being built on the build server. The location is: http://builder.pidome.org/view/Snapshot builds/

                            When it's done you can click 0.1-snapshot-2015-09-06.747 and download the server. On the pi stop the server, overwrite files, and start it again. Don't worry, important data will not be overwritten (as with any update)

                            You can see it is done when on the left side there are no active jobs being displayed.

                            Let me know if it has been solved for you.

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

                            1 Reply Last reply
                            0
                            • AndrewBA Offline
                              AndrewBA Offline
                              AndrewB
                              wrote on last edited by
                              #190

                              Thanks for the quick responses and update!

                              I downloaded and installed the new version on my pi, confirmed it was the correct version inside of pidome, however it is still not working. :/

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

                                Could you make a screenshot of your created device it's

                                • Group control details
                                • Control details

                                And check in the file logs/system/appLog.txt if you got messages mentioning mysensors? (quite at the end, you can do a "tail-f log/system/appLog.txt -n 200" in putty "ctrl+c" to stop it, select lines, click (copy) and paste them)

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

                                1 Reply Last reply
                                0
                                • AndrewBA Offline
                                  AndrewBA Offline
                                  AndrewB
                                  wrote on last edited by
                                  #192

                                  I currently have debug enabled, will that make a difference on what you want from the log file?

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

                                    Well that would give a big amount of data, and it definitely will help... If you do not mind i will send my email address using chat so i can send you files if needed what could help in solving this quicker.

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

                                    1 Reply Last reply
                                    0
                                    • AndrewBA Offline
                                      AndrewBA Offline
                                      AndrewB
                                      wrote on last edited by
                                      #194

                                      Sure! No problem!

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

                                        Send via chat

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

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

                                          With help from @AndrewB The issue has been solved.

                                          The battery level via the MQTT gateway seems to need some extra attention as it is broadcasted in an unexpected mqtt path.

                                          to show battery level using mqtt please use group id "255" and control id "V_"

                                          Cheers!

                                          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


                                          17

                                          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