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
M

mvader

@mvader
About
Posts
155
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • NRF serial to usb for gateway?
    M mvader

    @Dreded thanks for the link. i wish it had a spot for an external antenna but i suppose it would be good enough to get it out of the way.

    General Discussion

  • NRF serial to usb for gateway?
    M mvader

    @mfalkvidd @Nca78 I already have the Rpi 3 as a gateway, I also have a serial gateway (arduino) not in use.
    my goal is/was to combine tasks. i have several intel nuc type PC's that have free resources. so i wanted to eliminate the uni-tasker and move it onto an existing pc.
    at $9 cost is not a factor.
    is the gateway code ARM only? or would it compile on x86?
    if it's going to be a huge under taking, i won't mess with it. i have to many other projects at the moment.
    i just didn't know if it would be an easy conversion.

    General Discussion

  • NRF serial to usb for gateway?
    M mvader

    currently i'm using an RPI3 for mysensor gateway, i would like to move the gateway off the pi and to a small linux pc that i have. but it has no gpio ports for the NRF module.
    does anyone know if i could use something like this instead?
    https://www.amazon.com/NOYITO-CH340T-Adapter-NRF24L01-Wireless/dp/B07DQBRBCM

    General Discussion

  • sendBatteryLevel not showing up in HA dasboard
    M mvader

    @peerv in my situation, if i click on any of my child devices, like temp, lux, humidity, etc. i can see the battery level. so i have to create a new sensor, in this case i'm creating computer_room_15_0, and i pull the value from child 1, i could pull it from 2,3 or 4, but i chose 1. and the value that i'm pulling is an attribute of child 1 called battery_level
    now that i have created that sensor. i can place it where ever i want.
    so the newly created sensor computer_room_15_0 is my entity_id that can go in a card or whatever.
    before you do that, i would trouble shoot in the following way.

    1. pick a child device and open it, ensure you can see the battery level.
    2. create a new sensor based on the template above (restart after)
    3. go into the the states dev tool page and ensure it's there and has the correct value.
    4. if yes, then open the standard states based screen see if it shows up at the top in the circle.
    5. if yes, put that entity in your lovelace ui as you see fit, if no, go back and figure out where it's not working.
      you can also tail the log file and you restart and look for any error messages that may offer a clue to why.
      here is my states screen for the battery sensor.
      0_1548686200300_batt.JPG
    Home Assistant

  • sendBatteryLevel not showing up in HA dasboard
    M mvader

    then under groups
    computer_room_group:
    name: Computer Room
    entities:
    - sensor.computer_room_15_0
    - sensor.computer_room_15_1
    - sensor.computer_room_15_2
    - binary_sensor.computer_room_15_3
    - sensor.computer_room_15_4

    Home Assistant

  • sendBatteryLevel not showing up in HA dasboard
    M mvader

    0_1548528808270_battery.JPG

    Home Assistant

  • sendBatteryLevel not showing up in HA dasboard
    M mvader

    @peerv said in sendBatteryLevel not showing up in HA dasboard:

    @mfalkvidd
    Thanks, yes your solution could work. Also a voltage divider with a seperate child-id could work.

    But my point is that the Arduino battery_level value is already available in the mysensors.json in Home Assistant.

    "type": 17,
            "sketch_name": "N60Breed",
            "sketch_version": "1.0",
            "battery_level": 91,
            "protocol_version": "2.3.1",
            "heartbeat": 0
    

    I just don't know how to get the battery_level value presented in the HA UI.

    you have to use a template.
    under the sensors section

    • platform: template
      sensors:
      computer_room_15_0:
      unit_of_measurement: "%"
      entity_id: sensor.computer_room_15_1
      icon_template: mdi:battery
      value_template: >-
      {%- if states.sensor.computer_room_15_1 != None -%}
      {{states.sensor.computer_room_15_1.attributes.battery_level}}
      {%- else -%}
      0
      {%- endif -%}
    Home Assistant

  • 💬 Building a Raspberry Pi Gateway
    M mvader

    FYI looks like on the 2.3.1 beta the transport has been changed to rf24 instead of nrf24

    Announcements

  • queuing and sending messages
    M mvader

    @mvader said in queuing and sending messages:

    I want to be able to issue commands (reboot, firmware update, etc) and when they wake up to transmit via motion or ti

    can anyone point me in the right direction?

    Troubleshooting

  • queuing and sending messages
    M mvader

    I have several battery powered nodes. I want to be able to issue commands (reboot, firmware update, etc) and when they wake up to transmit via motion or timed sending of data. they receive and execute whatever command i have sent. so far i can't get this to work. if i send a reboot command from the controller during the OTA wait period. the node receives the request and reboots.. if the OTA period is over, then the node never follows the command. even after waking up. it still never executes said command.
    so it seems the gateway is not queuing up the command or it's not sending when the node wakes up.

    what is the correct approach to implement this and how can i troubleshoot if the GW is receiving, queuing and sending commands for a sleeping node?
    running lib 2.2.0
    and the gw is 2.2.0 on a RPI3

    Thanks!

    Troubleshooting

  • 💬 Sensebender Micro
    M mvader

    @tbowmo said in 💬 Sensebender Micro:

    @mvader

    Is it the default dualoptiboot bootloader? Then the bootloader itself does not support OTA FW. You need to put a sketch on it, that supports OTA. (Default sensebender micro sketches doesn't)

    yes it's the default bootloader. yes i have OTA added to the sketch. it works if i reset the device via manual reset. but what i'd like to do is send the reboot command from myscontroller. but it seems to do nothing ever. does the bootloader support reboot? or is that something i also have to add to the sketch?

    situation: i have about 15 sensors all over the house. if i update, i'd like to be able to assign the firmware, and then issue the reboot command. so upon reboot, they take the assigned firmware. what i don't want to do is have to go to each one and manually press the reset button to get it to take the firmware. i'm sure it's healthier to run up and down 3 flights of stairs. but i'm lazy :)

    OpenHardware.io temperature atmega328 atsha204a humidity flash mysensors

  • 💬 Sensebender Micro
    M mvader

    Am I able to remote reboot the sensebender micro? I can send an OTA firmware if i manually press the reset button.
    but can i use the reboot command in MYScontroller? it doesn't seem to do anything when issued.

    OpenHardware.io temperature atmega328 atsha204a humidity flash mysensors

  • 💬 NodeManager
    M mvader

    @user2684 said in 💬 NodeManager:

    @mvader thanks for the feedback, I've added this issue on Github so to fix this in the next dev release https://github.com/mysensors/NodeManager/issues/344

    Thanks!! here is the setup and loop part from the sketch

    setup
    pinMode(7, OUTPUT); // “power pin” for Light Sensor
    digitalWrite(7, LOW); // switch power off
    
    loop
      digitalWrite(7, HIGH); // switch power on to LDR
      sendLight(forceTransmit);
      digitalWrite(7, LOW); // switch power off to LDR
    
    and the function
    /*
     * Sends Ambient Light Sensor information
     * 
     * Parameters
     * - force : Forces transmission of a value
     */
    
    void sendLight(bool force) // Get light level
    {
      if (force) lastLightLevel = -1;
      int rlightLevel =  analogRead(LIGHT_PIN);
      int lightLevel =  (analogRead(LIGHT_PIN) / 10.23) ;
      if (lightLevel != lastLightLevel) {
       gw.send(msgLight.set(lightLevel));
        lastLightLevel = lightLevel;
      }
    
    OpenHardware.io contest2017 arduino newbie mysensors battery sensor

  • 💬 NodeManager
    M mvader

    @user2684 in the sensebender sketch we turn on digital pin 7 to provide power to the LDR to read it.
    i have many sensors in my house and would rather not re-wire all of them.
    how can i add this cleanly in nodemgr to make it work as before?
    pinMode(7, OUTPUT); // “power pin” for Light Sensor
    digitalWrite(7, LOW); // switch power off

    Thanks!

    OpenHardware.io contest2017 arduino newbie mysensors battery sensor

  • 💬 Building a Raspberry Pi Gateway
    M mvader

    @gohan said in 💬 Building a Raspberry Pi Gateway:

    @masmat have you tried with ethernet gateway? If I have time I'll try the mqtt this weekend

    @mvader I never noticed that.... is it the mqtt GW?

    I'm not using mqtt.
    for debug purposes i use MYSController
    every 10 seconds on the dot. it shows me the version of the gateway.

    201	3/15/2018 20:47:15	RX	0 - Gateway	INTERNAL	C_INTERNAL	NO	I_VERSION	2.2.0
    202	3/15/2018 20:47:25	RX	0 - Gateway	INTERNAL	C_INTERNAL	NO	I_VERSION	2.2.0
    203	3/15/2018 20:47:35	RX	0 - Gateway	INTERNAL	C_INTERNAL	NO	I_VERSION	2.2.0
    204	3/15/2018 20:47:45	RX	0 - Gateway	INTERNAL	C_INTERNAL	NO	I_VERSION	2.2.0
    205	3/15/2018 20:47:55	RX	0 - Gateway	INTERNAL	C_INTERNAL	NO	I_VERSION	2.2.0
    206	3/15/2018 20:48:05	RX	0 - Gateway	INTERNAL	C_INTERNAL	NO	I_VERSION	2.2.0
    
    

    @marceloaqno any ideas about that?

    Announcements

  • 💬 Building a Raspberry Pi Gateway
    M mvader

    1st patch is still working good for me. have had no issues since applying it.

    question. is it normal/correct for the gateway to ping or spam? every 10 seconds i see the gateway announce it's version.
    its not doing the full restart or anything.. just giving the 2.2.0 every 10 seconds.

    Announcements

  • 💬 Building a Raspberry Pi Gateway
    M mvader

    @marceloaqno said in 💬 Building a Raspberry Pi Gateway:

    @otto001 I'm trying to reproduce this problem, but so far I've got nothing beyond the normal behavior of mysgw.
    I tried with a RPi1 and RPi3 using the fhem controller with the latest raspbian.

    My uptime is at 4 days now. so far still working with your patch. CPU is at 2% and sensor network still working correctly. will report if that changes.

    Announcements

  • 💬 Building a Raspberry Pi Gateway
    M mvader

    @marceloaqno I am also recompiling and testing.
    thanks for the (hopeful) fix
    I will report back with my status in a few days

    Announcements

  • 💬 NodeManager
    M mvader

    @user2684 said in 💬 NodeManager:

    @mvader for question #1, I've added it to the existing issue https://github.com/mysensors/NodeManager/issues/221. For question #2, for sensors using i2c the pin is not required despite within the code nodemanager will set a random pin (have a look at SensorSHT21 for example)

    great.. thank you!

    OpenHardware.io contest2017 arduino newbie mysensors battery sensor

  • 💬 NodeManager
    M mvader

    @user2684 can you add support for the Si7021 sensor as found in sensebender micro?
    https://www.mysensors.org/hardware/micro

    also, 2nd question.
    how do i register a sensor that is onboard?
    you ask for a child id and pin that it's on. but if it's an onboard sensor. how do you make that work? just omit the pin?

    OpenHardware.io contest2017 arduino newbie mysensors battery sensor
  • Login

  • Don't have an account? Register

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