Discussion Forum to share and further the development of home control and automation, independent of platforms.

    SmartHome Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Unsolved
    (Last Updated: 22 August 2021)
    • MIOS - UI5 web login

      Black Cat

      Can anyone help with the MIOS UI5 weblink? Not the getvera one.
      Still running UI5 on a couple of sensors & lights and need to tweak PLEG but for the life of me I can't remember the link to tunnel back to the trusty machine....

      General Discussion
    • Smart devices and mesh

      J

      The wifi on my router is turned off, and wifi around the house is provided using a mesh - 3 units altogether (one connected directly to the router) that are spread around the house.

      I would like to start automating certain tasks around the house and intend to try adding a few smart sockets to my setup.

      The mesh system I have supports both 2.4GHz and 5GHz, and does not provide me with the option to control them - i.e. turn one or both on/off, give each a different SSID, etc.

      The devices I wish to purchase/use only support 2.4GHz.

      Will turning the mesh units off and temporarily turning the 2.4GHz wifi on the router to allow me to set them up be enough? Will I then be able to return to my usual setup and everything will work as it should?

      Many thanks in advance

      General Discussion
    • Smart bed sensor

      C

      Hey everyone, I'm currently working on developing a bed sensor that can detect when you're out of bed. It could be used to trigger other smart home gadgets, like lights or blinds, temperature etc.
      The sensors are placed under the legs of your bed post. Should look and feel like "smart furniture pads" with size 2 inches in diameter and 1/4 inch thick.
      Before we go any further, I'd love to get your thoughts on this - would a bed sensor like this be something you'd find useful? We're still in the early stages of development, so any feedback you have would be greatly appreciated. Thanks in advance!

      smart möbeltass.JPG

      General Discussion
    • ChatGPT - finally I can now retyre in piece and quite, knowing everting is in goof hands.

      A

      ChatGPT samples:

      Me:

      Tell me about an iot program called openLuup.

      It:

      OpenLuup is an open source home automation system that is built on the VeraLuup platform. It is designed to be easy to install and configure, and provides users with a powerful and versatile way to control their home automation devices. OpenLuup offers a wide range of features, including support for many popular home automation devices, scheduling, scripting, and integration with other services. OpenLuup is designed to be customizable, allowing users to create their own home automation systems. It is an excellent choice for those looking to create their own home automation system without spending a lot of money.

      Me:

      Write an iot program using openLuup.

      It:

      --openLuup IoT Program-- -- Initialize Variables -- local device_id = "MyHomeDevice" local temperature_sensor_id = "MyTemperatureSensor" local temperature_threshold = 75 -- Create Devices -- luup.create_device("OpenLuup Temperature Sensor", 0, device_id, "D_GenericSensor1.xml", "I_GenericSensor1.xml", "S_TemperatureSensor1.xml", "") luup.variable_set("urn:upnp-org:serviceId:TemperatureSensor1", "CurrentTemperature", 0, device_id) -- Start Timer -- luup.call_delay("check_temperature", 10, "", false) --Function to Check Temperature-- function check_temperature() local current_temperature = luup.variable_get(temperature_sensor_id, "CurrentTemperature", 0) --Check Temperature Threshold-- if current_temperature >= temperature_threshold then --Send Alert-- luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "SendTextMessage", {PhoneNumber="1234567890", Message="ALERT! Temperature exceeded threshold!"}, 0) end --Reset Timer-- luup.call_delay("check_temperature", 10, "", false) end

      Me:

      Write an iot program using openLuup.

      It:

      Write an iot program using openLuup. -- openLuup IOT Program -- -- Variables local lampState = false local lampTime = 0 -- Functions function lampTimer() if lampTime > 0 then lampTime = lampTime - 1 if lampTime == 0 then luup.variable_set('urn:upnp-org:serviceId:SwitchPower1', 'Status', 0, lampDeviceID) lampState = false end end end -- Setup luup.call_delay('lampTimer', 60, 0) -- Main Loop while true do -- Check for motion if luup.variable_get('urn:micasaverde-com:serviceId:MotionSensor1', 'Tripped', motionSensorDeviceID) == '1' then if not lampState then luup.variable_set('urn:upnp-org:serviceId:SwitchPower1', 'Status', 1, lampDeviceID) lampState = true -- Set lamp timer to 5 minutes lampTime = 300 end end luup.sleep(1) end

      What??

      luup.sleep(1)

      Not good - looks like I still have some semblance of a job to fulfill.

      Me:

      An iot program called openLuup was written by akbooer. Who is akbooer?

      It: (note: answer redacted and as I understand it, also incorrect re: AltUI):

      akbooer is the pseudonym of the software developer and home automation enthusiast. He is the creator of the openLuup home automation software, which is an open-source version of the Vera home automation system. He is also the creator of the AltUI graphical user interface for openLuup.

      Me:

      Who created of the AltUI graphical user interface for openLuup.

      and

      Me:

      Who created of the AltUI graphical user interface for the home automation system Vera.

      Names two different people - mmmm.

      Regardless very impressive - give it a few more years.

      General Discussion
    • A topic for self learning...

      CatmanV2

      ...which I'd like to do. I know I go about these things all wrong (namely think of something I'd like to do, then try and work out what I need to know) but that's me 🙂

      Just looking for some pointers on what I should google for really:

      What I'd like is to provide a selection of (basically two word) phases which I can select from randomly (or even pseudo randomly) and pass to Alexa to be spoken. There are 10 such phrases only.

      So what should I be reading up on to get me started?

      TIA for any guidance

      C

      General Discussion
    • Short survey

      P

      Hi,
      I am a student and recently i am working on smart home project and writing a seminar paper about the way users handle and manage IoT devices. I you have 3 min, please fill below survey. Its really short.
      Thank you in advance, I really appreciate everyone's help.

      General Discussion
    • LibraSun's Dashboard Apps Roundup 2023

      LibraSun

      For what it's worth, I've been putting the finishing touches on a much-updated version of my DP Apps spreadsheet -- specifically intended for HE users, at least for now -- and invite you all to take a gander http://bit.ly/hedb23 at the PDF one-page version.

      Corrections and edits welcome (esp. for the HOMEKIT column, just added yesterday)! Thanks in advance, especially because I'm not a big dashboard user myself, but somehow accepted this role as "keeper of the list" as it were.

      General Discussion
    • Separate switching bulb in one ceiling light

      P

      Hello guys,

      I would like to achieve two different things with lights, but I am not sure it could be done. I am starting with smart things, and I am far from any electrician knowledge, wo any help is really appreciated.

      I have dumb switches in my hall, controlled from 3 places. I understood that installing one smart module before first switch will make them "hybrid", both smart controlled and dumb controlled.

      I would like to buy ceiling light with two bulb sockets. What I would like to achieve is I would like to have one bulb for normal daily usage (lets say cold white full brightness), and second for night time (aprox from 10pm till morning) with some red/orange - minimum brightness.

      So question are:

      Is there a way to keep both bulbs turning-on separated? So only one will be on during day, and then only second during night?

      And could that be done with pressing dumb switch? What would I need to achieve it? (maybe another module into the ceiling lights)

      Thank you in advance

      General Discussion
    • How to reset kwh

      B

      Aften some testing I watt to clear KWH how ?

      Regards Bjarne

      General Discussion
    • Need help in finding the right smart switch for my kitchen lights

      M

      Hello,
      I have a kitchen light that can be controlled by two switches, using either to turn it off or on. I have been slowly changing things over to be a smart home but this is the first switch I am attempting to install.
      I am in a double wide modular home (mobile) that was built in 1994.
      At first I thought I would need a 3 way switch but when taking the normal switches apart I realized that was incorrect because the wiring on my switches are different than anything I could find online.
      For one a 3 way smart switch requires 5 wires and there are only 2 wires going into the primary switch with 3 wires going into the secondary switch from the primary switch (at least I think the 3 wires connect the two switches together). Images will be attached of the wiring.
      There are two wires (one black and one white) going into the first switch and 3 wires (black, white, and red) going out of that and into the second switch (I assume). The odd thing is the red wire going to the second switch is connected to the white wire going into the first switch and the white wire going into the second switch seems to be a bridge wire or a traveler wire. Not exactly sure. You will see what I mean in the images.
      I need to know what kind of smart switch I can use in this set up with one remaining a normal switch.
      Note that for some reason the images got switched around when uploading them. The image with 2 wires on one side and 3 on the other is what I think is the primary and the image with just 3 wires is the secondary.
      Primary.jpg Secondary.jpg

      General Discussion
    • OT: Universal Remote

      CatmanV2

      You lot are more likely to have a view than most I know. Our much used Logitech Harmony is (not so) slowly dying.

      And Logitech have discontinued the entire line.

      And no one else appears to be making something similar.

      Was going for a Sofabaton X1, but no numeric keypad. Sofabaton U1, but no favourites.

      Anyone got suggestions?
      Needs to have those features, oh and not be only a phone app.....

      C

      General Discussion
    • The Home Automation Controller Pyramid

      rafale77

      Since one member asked at one point about the "front end" and "back end", I drew this showing the controller from the base to the tip along with what I have found to be the best options from my testing. Almost every controller will try to integrate all elements, especially commercial ones but... they all have strengths and weaknesses so if one can have a medley of the best ones...

      Screen Shot 2020-05-14 at 07.11.06.png

      General Discussion
    • Thread removed - why?

      Black Cat

      I was just going to add my support for a Update Button for the bare bones version of MSR and find the thread has been removed.
      I'm wondering what was so provocative that required it's removal?
      Have we become as paranoid as an owner of another forum?

      Anyway +1 for an Update Button.

      General Discussion
    For those who registered but didn't received the confirmation email, please send an email to support@smarthome.community with the email you used

    Solved Logrotate advice

    General Discussion
    3
    8
    116
    Loading More Posts
    • 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.
    • CatmanV2
      CatmanV2 last edited by CatmanV2

      Hi all
      Ran into an issue last month where my Open Luup box ran out of disk space in /var/log. It's Debian with a separate partition so everything carried on working but it had some very interesting effects on my network.

      Culprit was the z-way server log which was at about 5G....

      So I thought I'd set up logrotate on it. Dead simple. And so it seems. Log is rotate just fine but z-way-server carries on writing to the old log. Any ideas how to fix that (apart from re-starting the server every time we rotate?).

      Entry from logrotate.d is here:

      catman@openluup:/etc/logrotate.d$ cat z-way-server 
      /var/log/z-way-server.log {
      	weekly	
      	rotate 4
      	compress
      	delaycompress
      	missingok
      	notifempty
      	create 644 root root
      }
      

      z-way-server config:

      <config>
          <automation-dir>automation</automation-dir>
          <log-file>/var/log/z-way-server.log</log-file>
          <log-level>2</log-level>
          <debug-port></debug-port>
      </config>
      config.xml (END)
      

      TIA

      C

      The Ex-Vera abuser know as CatmanV2.....

      1 Reply Last reply Reply Quote 0
      • akbooer
        akbooer last edited by

        I wonder what happens if you move/delete the log file? Does it just carry on with a new one?

        CatmanV2 1 Reply Last reply Reply Quote 0
        • CatmanV2
          CatmanV2 @akbooer last edited by

          @akbooer said in Logrotate advice:

          I wonder what happens if you move/delete the log file? Does it just carry on with a new one?

          No. Carries on writing to the old one. I've amended it the config to use copytruncate. In theory this copies the existing file to $file.log.1 and then truncates the original file (and the app keeps writing to it)
          There is a timeslice where entries may be lost but I'm not concerned. I'm just waiting for the next rotate now

          Cheers

          C

          The Ex-Vera abuser know as CatmanV2.....

          toggledbits 1 Reply Last reply Reply Quote 0
          • toggledbits
            toggledbits @CatmanV2 last edited by

            @catmanv2 said in Logrotate advice:

            No. Carries on writing to the old one.

            That's because the inode (basically a structure that represents allocation of space on disk) still exists in the file system and the service still has the file descriptor open on that inode. Changing the name or location of a file does not change the inode itself, but just a field on it (like renaming a device on Vera doesn't change the device number or ZWave node ID).

            In fact, if you delete the file, that just marks it deleted on the inode, but does not delete the inode or free up the space associated with it unless and until all file descriptors open on the inode are closed. Those open file descriptors can continue to write (and consume disk space) now to a file you can't actually see in ls, so the services that use them are still writing to the now-invisible file. Only when that open descriptor count is 0 is the file actually deleted and the inode and its allocated blocks free'd.

            Most services need to be notified that the log file has changed, so they can close their file descriptors and open new ones, and you can see this expressed in a variety of ways in the various configs for the system services that are rotated. It's not unusual to see a service configured for restart at the time of log rotation, and this is why.

            Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

            1 Reply Last reply Reply Quote 1
            • CatmanV2
              CatmanV2 last edited by

              Yeah, I copied the config for something else. Only a few have a restart and none use copytruncate. I don't really want to restart z-way-server every time though....

              C

              The Ex-Vera abuser know as CatmanV2.....

              1 Reply Last reply Reply Quote 0
              • toggledbits
                toggledbits last edited by

                Have you seen this thread?

                https://smarthome.community/topic/112/logrotate-for-z-way-server

                Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

                CatmanV2 1 Reply Last reply Reply Quote 0
                • CatmanV2
                  CatmanV2 @toggledbits last edited by

                  @toggledbits said in Logrotate advice:

                  Have you seen this thread?

                  https://smarthome.community/topic/112/logrotate-for-z-way-server

                  I actually contributed to it! my memory really is going.

                  I'll see how the truncate works

                  C

                  The Ex-Vera abuser know as CatmanV2.....

                  1 Reply Last reply Reply Quote 0
                  • CatmanV2
                    CatmanV2 last edited by

                    Worked perfectly

                    C

                    The Ex-Vera abuser know as CatmanV2.....

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Welcome. If you’d like to participate in the discussion, rather than just read, then you can join the forum. As a member, you can interact with others here to share your experience and ask the questions you need answered.

                    Powered by NodeBB | Contributors
                    Hosted freely by 10RUPTiV - Solutions Technologiques | Contact us