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
SebexS

Sebex

@Sebex
About
Posts
52
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Battery powered Pro Mini - Si7021 loses connection with gateway after ~6hrs
    SebexS Sebex

    Hi all,

    I'm running a Pro Mini on 1Mhz with a Si7021 sensor on 2x AA NiMh batteries (~3.6V). It all works fine for around 6hrs before it loses connection with the gateway it seems. It doesn't update anymore which results in a flatline in Home Assitant. Upon pressing the physical reset button on the Pro Mini everything goes back to normal; Temp/Hum are reported accurately every minute. The mysgw.log does not show anything strange, it just stops showing data from the specific node. I ran the Pro Mini on a steady 5V input which resulted in the exact same behaviour. Other than changing the freq. the hardware of the Pro Mini remains unchanged.

    What can be the problem? How can I make sure it doesn't lose connection.

    Troubleshooting

  • 💬 Battery Powered Sensors
    SebexS Sebex

    @Puneit-Thukral Will do!
    After closer inspection the pins of the NodeMCU seem to be a lot bigger in size. However I am struggling to find the correct sizing of Arduino Pro Mini pins (width/thickness). The spacing between pins and length of them are easy to find but I cannot find the thickness at all. Do you have an idea?

    Announcements battery

  • 💬 Battery Powered Sensors
    SebexS Sebex

    @Puneit-Thukral cool, from what I read the pins are the same size as on Arduino's. I'll use this design to create one for myself.

    Announcements battery

  • V_UNIT_PREFIX not working/recognised for Air Quality sensor CSS811
    SebexS Sebex

    @Puneit-Thukral in your screen it shows a number right?

    edit: is there a method to resize uploaded pictures here?

    alt text

    Troubleshooting

  • 💬 Battery Powered Sensors
    SebexS Sebex

    @Puneit-Thukral haha okay I see.

    Another question, your case that you use in the video snaps onto the pins perfectly it seems. Did you 3d print that yourself? I'm looking to 3D print a case for my pro mini and some other sensors that snaps in a similar way so that nothing moves around. However I'd rather copy a proven design than figuring out the tolerances myself.

    Announcements battery

  • 💬 Battery Powered Sensors
    SebexS Sebex

    @Puneit-Thukral interesting! Seems as a better option than Dupont, I'm gonna look into it.
    You mention hot glueing the wires yourself as extra protection. But I imagine you can also put a layer of solder on it right?

    Announcements battery

  • Error when trying to use another library with mysensors
    SebexS Sebex

    @krabbi I have a similar issue as un4 described.
    When nWake is connected on GND it works fine, when connecting to D3 (6) it stops working. I'm using the same sketch source as krabbi. Any suggestions?

    Development

  • 💬 Battery Powered Sensors
    SebexS Sebex

    Ok thnx guys, guess I'll be ordering a pro mini very soon!

    Announcements battery

  • 💬 Battery Powered Sensors
    SebexS Sebex

    @mfalkvidd thanks makes sense, eventually I will switch to NiMh. Had a look at the different cases, gives some good inspiration thanks for pointing in the right direction!

    Now that I want to desolder the regulator and LED on the Nano, I just want to verify something, since the video shown is about the mini pro.

    (1) Is the circled part in the image below, indeed the regulator on the Nano?
    (2) On the battery powered sensor page, step 4 states to cutout the Vout pin. Why does this lower power consumption, and how can I locate this on the Nano?

    alt text

    Announcements battery

  • 💬 Battery Powered Sensors
    SebexS Sebex

    @sineverba thanks, I got it working and it's up and running. Still have to desolder the led and remove the regulator, will do that later.
    Regarding the BOD, what happens if I disable it? Will it run for longer as it does not shutdown? Or is any voltage below 1.8v bad for the arduino?

    A bit off topic maybe, but I was wondering how the 'pros' around here make the sensor small and sturdy for Arduino's with Si7021+ 2xAA battery pack. My DuPont wires seem a bit loose, so I'm wondering whether I should solder them. And perhaps someone 3d printed a case for an Arduino+Batterypack or some sorts.

    Announcements battery

  • 💬 Battery Powered Sensors
    SebexS Sebex

    Hi Guys, I need some help on this guide.
    I am running a Nano with radio and Si7021 sensor on 1Mhz to lower the required operating voltage, other than this is unmodified no desoldered led or regulators etc.. I tried running it on 2x 1.5v AA batteries connected to Vin and GND, the LED powers on but nothing else happens. When using 3 AA batteries it does send data, so apparently it needs more than 3v. How can I ensure that the setup is fine with 3V, I bought the 3V AA battery holder but I cannot seem to run it at that currently. Which steps can I take to do so? Help is appreciated.

    Announcements battery

  • V_UNIT_PREFIX not working/recognised for Air Quality sensor CSS811
    SebexS Sebex

    @niclas hey man it seems to be working due to putting the version in the config file, at the right indent. So your suggestion worked after all, guess I had to wait a bit before it was recognised by HA. Thnx, problem solved :smiley:

    Troubleshooting

  • V_UNIT_PREFIX not working/recognised for Air Quality sensor CSS811
    SebexS Sebex

    @niclas interesting, was not aware of that.
    I had a quick look at my configuration file and did see something strange, within the mysensors gateways code two devices were listed. The second one is unknown to me and was misplaced in the code (indents etc.). So I fixed that. All mysensors nodes are saved in mysensors.json. I have no idea what /dev/ttyACM1 is doing here, neither is mysensors1.json anywhere to be found.
    As a gateway I use a RPI, as you can see below the version is mentioned. Rebooting the HA after ordering the configuration had no visible effect.

    mysensors:
      gateways: 
        - device: '192.168.178.26'
          persistence_file: 'mysensors.json'
          tcp_port: 5003
        - device: '/dev/ttyACM1'
          persistence_file: 'mysensors1.json'
      persistence: true
      version: '2.3'
    
    
    Troubleshooting

  • V_UNIT_PREFIX not working/recognised for Air Quality sensor CSS811
    SebexS Sebex

    Hey there!

    Last weekend I got my CCS811 sensor working to measure the eCO2 and TVOC lvls. It reports the values just fine and the sensor is recognised by HA. Upon creating a UI where the values can be seen in a graph, I am getting the HA error that the sensors has no unit of measurement.

    Which was true so I added the V_UNIT_PREFIX to the message, unfortunately this did not solved the error. I am not sure whether the prefix is not send correctly or that HA just can't deal with it. I presume the former and looking for any advice to ensure that it is sent correctly to the HA/controller and getting insight in my mistake. I have read about solving the issue within HA but I'd rather fix it at the core in the sketch.

    Below the code, everything works fine. Hope the community can help out!

    // Enable debug prints
    #define MY_DEBUG
    
    // Enable and select radio type attached 
    #define MY_RADIO_RF24
    
    
    // Include libraries
    #include <MySensors.h>
    #include "Adafruit_CCS811.h"
    #include <SI7021.h>
    
    
    static Adafruit_CCS811 ccs;
    #define CHILD_ID_eCO2  0
    #define CHILD_ID_TVOC 1
    
    
    // Sleep time between sensor updates (in milliseconds)
    static const uint64_t UPDATE_INTERVAL = 10000;
    
    void presentation()  
    { 
      // Send the sketch info to the gateway
      sendSketchInfo("eCO2, TVOC", "0.02");
    
      // Present sensors as children to gateway
      present(CHILD_ID_eCO2, S_AIR_QUALITY, "eCO2");
      present(CHILD_ID_TVOC, S_AIR_QUALITY, "TVOC");
    
    
    }
    
    void setup() 
    { 
      while (not ccs.begin())
      {
        Serial.println(F("Sensor not detected!"));
        delay(5000);
      }
      Serial.println("CCS811 test");
    
     
    }
    
    void loop() {
      if(ccs.available()){
        if(!ccs.readData()){
        // Read temperature & humidity from sensor.
        const float eCO2 = float(ccs.geteCO2());
        const float TVOC = float(ccs.getTVOC());
        
        Serial.print("CO2: ");
        Serial.print(eCO2,0);
        Serial.print("ppm, TVOC: ");
        Serial.print(TVOC,0);
        Serial.println("ppb");
    
        static MyMessage msgeCO2(CHILD_ID_eCO2,  V_LEVEL);
        static MyMessage msgeCO2Prefix(CHILD_ID_eCO2, V_UNIT_PREFIX);
        static MyMessage msgTVOC(CHILD_ID_TVOC, V_LEVEL);  
        static MyMessage msgTVOCPrefix(CHILD_ID_TVOC, V_UNIT_PREFIX);     
    
        send(msgeCO2.set(eCO2, 0)); //1 decimal
        send(msgeCO2Prefix.set("ppm"));
        send(msgTVOC.set(TVOC, 0));
        send(msgTVOCPrefix.set("ppb"));
            
        }
        else{
          Serial.println("ERROR!");
          while(1);
        }
      }
    
      // Sleep until next update to save energy
      sleep(UPDATE_INTERVAL); 
    }
    
    Troubleshooting

  • Next generation dust sensor for MySensors
    SebexS Sebex

    @NeverDie could you share your Honeywell code, I have trouble getting it to work. An example will help me a lot t learn from!

    General Discussion

  • 💬 Building a Raspberry Pi Gateway
    SebexS Sebex

    @mfalkvidd thanks, I was wrongly under the impression that sudo mysgw would show the logs but it creates a second instance. Thanks for helping :smile:!

    Announcements

  • Problem with battery powered temperature sensor
    SebexS Sebex

    @nekitoss very helpful and clear post regarding battery powering!
    I have Atmega328 16mhz, is it possible to change the 16 to 8mhz so that it can be powered by two AA batteries?

    Development

  • 💬 Building a Raspberry Pi Gateway
    SebexS Sebex

    I'm getting a bad file descriptor error, any advice? Seems only 1 instance to be running.

    pi@raspberrypi:~ $ sudo mysgw
    Mar 19 20:14:04 INFO  Starting gateway...
    Mar 19 20:14:04 INFO  Protocol version - 2.3.2
    Mar 19 20:14:04 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,FQ=NA,REL=255,VER=2.3.2
    Mar 19 20:14:04 DEBUG TSF:LRT:OK
    Mar 19 20:14:04 DEBUG TSM:INIT
    Mar 19 20:14:04 DEBUG TSF:WUR:MS=0
    Mar 19 20:14:04 DEBUG TSM:INIT:TSP OK
    Mar 19 20:14:04 DEBUG TSM:INIT:GW MODE
    Mar 19 20:14:04 DEBUG TSM:READY:ID=0,PAR=0,DIS=0
    Mar 19 20:14:04 DEBUG MCO:REG:NOT NEEDED
    Mar 19 20:14:04 ERROR bind: Address already in use
    Mar 19 20:14:04 ERROR Failed to bind!
    Mar 19 20:14:04 DEBUG MCO:BGN:STP
    Mar 19 20:14:04 DEBUG MCO:BGN:INIT OK,TSP=1
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 DEBUG TSM:READY:NWD REQ
    Mar 19 20:14:04 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    Mar 19 20:14:04 ERROR accept: Bad file descriptor
    
    Announcements

  • Raspberry Pi gateway + hass.io + MQTT + MySensors
    SebexS Sebex

    Here I am again, I had a second node running and tried to make it battery powered but it doesn't seem to work on battery only. Anyway along the process of finding out what the problem is I encountered two other problems:

    • I'm getting a ERROR accept: Bad file descriptor in mysgw, only 1 instance seems to be running though:

    Any suggestions on this?

      PID TTY      STAT   TIME COMMAND
        1 ?        Ss     0:05 /sbin/init
        2 ?        S      0:00 [kthreadd]
        3 ?        I<     0:00 [rcu_gp]
        4 ?        I<     0:00 [rcu_par_gp]
        8 ?        I<     0:00 [mm_percpu_wq]
        9 ?        S      0:00 [ksoftirqd/0]
       10 ?        I      0:05 [rcu_sched]
       11 ?        I      0:00 [rcu_bh]
       12 ?        S      0:00 [migration/0]
       13 ?        S      0:00 [cpuhp/0]
       14 ?        S      0:00 [cpuhp/1]
       15 ?        S      0:00 [migration/1]
       16 ?        S      0:00 [ksoftirqd/1]
       17 ?        I      0:00 [kworker/1:0-mm_percpu_wq]
       19 ?        S      0:00 [cpuhp/2]
       20 ?        S      0:00 [migration/2]
       21 ?        S      0:00 [ksoftirqd/2]
       23 ?        I<     0:00 [kworker/2:0H-kblockd]
       24 ?        S      0:00 [cpuhp/3]
       25 ?        S      0:00 [migration/3]
       26 ?        S      0:00 [ksoftirqd/3]
       29 ?        S      0:00 [kdevtmpfs]
       30 ?        I<     0:00 [netns]
       33 ?        I      0:00 [kworker/2:1-mm_percpu_wq]
       34 ?        S      0:00 [khungtaskd]
       35 ?        S      0:00 [oom_reaper]
       36 ?        I<     0:00 [writeback]
       37 ?        S      0:00 [kcompactd0]
       38 ?        I<     0:00 [crypto]
       39 ?        I<     0:00 [kblockd]
       40 ?        S      0:00 [watchdogd]
       42 ?        I<     0:00 [rpciod]
       43 ?        I<     0:00 [kworker/u9:0-hci0]
       44 ?        I<     0:00 [xprtiod]
       47 ?        S      0:00 [kswapd0]
       48 ?        I<     0:00 [nfsiod]
       59 ?        I<     0:00 [kthrotld]
       60 ?        I<     0:00 [iscsi_eh]
       61 ?        I<     0:00 [dwc_otg]
       62 ?        I<     0:00 [DWC Notificatio]
       63 ?        S<     0:04 [vchiq-slot/0]
       64 ?        S<     0:01 [vchiq-recy/0]
       65 ?        S<     0:00 [vchiq-sync/0]
       66 ?        S      0:00 [vchiq-keep/0]
       67 ?        S<     0:00 [SMIO]
       69 ?        S      0:00 [irq/86-mmc1]
       71 ?        I<     0:00 [mmc_complete]
       74 ?        I<     0:01 [kworker/0:1H-mmc_complete]
       75 ?        I<     0:00 [kworker/1:1H-kblockd]
       76 ?        S      0:00 [jbd2/mmcblk0p2-]
       77 ?        I<     0:00 [ext4-rsv-conver]
       79 ?        I<     0:00 [ipv6_addrconf]
       96 ?        I<     0:00 [kworker/3:2H-kblockd]
      101 ?        S      0:00 [irq/166-usb-001]
      114 ?        Ss     0:01 /lib/systemd/systemd-journald
      144 ?        Ss     0:01 /lib/systemd/systemd-udevd
      159 ?        S<     0:00 [SMIO]
      181 ?        I<     0:00 [mmal-vchiq]
      183 ?        I<     0:00 [mmal-vchiq]
      185 ?        I<     0:00 [mmal-vchiq]
      198 ?        I<     0:00 [cfg80211]
      202 ?        I<     0:00 [brcmf_wq/mmc1:0]
      203 ?        S      0:00 [brcmf_wdog/mmc1]
      247 ?        Ssl    0:00 /lib/systemd/systemd-timesyncd
      290 ?        Ss     0:55 /usr/local/bin/mysgw -q
      295 ?        Ss     0:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/ev
      297 ?        Ss     0:00 /usr/sbin/cron -f
      298 ?        Ss     0:01 avahi-daemon: running [raspberrypi.local]
      299 ?        Ss     0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
      303 ?        Ssl    0:00 /usr/sbin/rsyslogd -n -iNONE
      311 ?        Ss     0:00 /lib/systemd/systemd-logind
      315 ?        SNs    0:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
      319 ?        Ss     0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
      344 ?        SLsl   0:00 /usr/sbin/rngd -r /dev/hwrng
      356 ?        S      0:00 avahi-daemon: chroot helper
      395 ?        I      0:00 [kworker/2:3-mm_percpu_wq]
      456 ?        Ss     0:00 /sbin/dhcpcd -q -w
      461 ?        Ss     0:01 /usr/sbin/nmbd --foreground --no-process-group
      463 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
      466 ?        Ssl    0:02 /usr/bin/containerd
      467 ?        Ssl    0:11 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
      468 tty1     Ss+    0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
      469 ?        Ss     0:00 /usr/sbin/sshd -D
      479 ?        S      0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:d7:7e:1b
      481 ?        I<     0:00 [kworker/u9:2-hci0]
      483 ?        Ss     0:00 /usr/lib/bluetooth/bluetoothd
      489 ?        Ss     0:00 sshd: pi [priv]
      511 ?        Ss     0:01 /lib/systemd/systemd --user
      514 ?        S      0:00 (sd-pam)
      525 ?        Ss     0:00 /usr/sbin/smbd --foreground --no-process-group
      536 ?        R      0:03 sshd: pi@pts/0
      539 pts/0    Ss     0:01 -bash
      542 ?        S      0:00 /usr/sbin/smbd --foreground --no-process-group
      543 ?        S      0:00 /usr/sbin/smbd --foreground --no-process-group
      552 ?        S      0:00 /usr/sbin/smbd --foreground --no-process-group
      794 ?        Ss     0:00 /bin/sh /usr/sbin/hassio-supervisor
      821 ?        Sl     0:01 docker start --attach hassio_supervisor
      873 ?        Sl     0:00 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/af8bfda572398f9806ba54d
      890 ?        Ss     0:00 s6-svscan -t0 /var/run/s6/services
     1045 ?        S      0:00 s6-supervise s6-fdholderd
     1192 ?        Ss     0:00 udevd --daemon
     1267 ?        S      0:00 s6-supervise supervisor
     1271 ?        Ssl    0:17 python3 -m supervisor
     1354 ?        S      0:00 socat UDP-RECVFROM:53,fork UDP-SENDTO:172.30.32.3:53
     1398 ?        Sl     0:00 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/21403e3385d0ce05418df7e
     1409 ?        Sl     0:00 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/2b6193b6744b35b8d848671
     1433 ?        Ssl    0:01 coredns -conf /config/corefile
     1437 ?        Ss     0:00 s6-svscan -t0 /var/run/s6/services
     1625 ?        S      0:00 s6-supervise s6-fdholderd
     1919 ?        Ss     0:00 udevd --daemon
     1951 ?        S      0:00 s6-supervise bridge
     1952 ?        S      0:00 s6-supervise pulseaudio
     1955 ?        Ss     0:00 socat UNIX-LISTEN:/data/external/pulse.sock,fork,unlink-early,mode=777 UNIX-CONNECT:/data/internal/pulse.sock
     1956 ?        S<sl   0:05 pulseaudio --system -vvv
     2004 ?        Sl     0:00 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/00ef0f54f7a780be3af62a1
     2019 ?        Ssl    2:07 /usr/local/bin/python3 -m homeassistant --config /config
     2036 ?        Ss     0:01 udevd --daemon
     2353 ?        Sl     0:00 containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/9ca754987ee52a3a48c5290
     2369 ?        Ss     0:00 /sbin/docker-init -- /init /run.sh
     2462 ?        S      0:00 s6-svscan -t0 /var/run/s6/services
     2487 ?        S      0:00 foreground  if   /etc/s6/init/init-stage2-redirfd   foreground    if     if      s6-echo      -n      --      [s6-init] 
     2488 ?        S      0:00 s6-supervise s6-fdholderd
     2499 ?        S      0:00 foreground  s6-setsid  -gq  --  with-contenv  backtick  -D  0  -n  S6_LOGGING   printcontenv   S6_LOGGING    importas  S
     2632 ?        S      0:02 /usr/local/bin/python /usr/local/bin/hass-configurator /etc/configurator.conf
     2677 ?        S      0:02 /usr/sbin/smbd --foreground --no-process-group
     2837 ?        I<     0:00 [kworker/1:2H]
     2854 pts/0    T      0:00 sudo nano mysensors.conf
     2859 pts/0    T      0:00 nano mysensors.conf
     2903 ?        I      0:00 [kworker/u8:2-events_unbound]
     2937 ?        I<     0:00 [kworker/3:0H]
     2939 ?        I      0:00 [kworker/3:2-mm_percpu_wq]
     2968 ?        I      0:00 [kworker/1:2-events]
     3008 ?        I      0:00 [kworker/u8:0-events_unbound]
     3021 ?        I<     0:00 [kworker/0:2H]
     3022 ?        I      0:00 [kworker/0:0-events]
     3036 ?        I      0:00 [kworker/3:0-events]
     3037 ?        I<     0:00 [kworker/2:2H]
     3043 ?        I      0:00 [kworker/0:1-events_power_efficient]
     3068 ?        I      0:00 [kworker/u8:1-events_unbound]
     3070 ?        I      0:00 [kworker/2:0-mm_percpu_wq]
     3071 ?        I<     0:00 [kworker/3:1H-kblockd]
     3074 ?        I<     0:00 [kworker/0:0H]
     3075 ?        I      0:00 [kworker/3:1-events]
     3076 pts/0    R+     0:00 ps -ax
    
    
    Home Assistant
  • Login

  • Don't have an account? Register

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