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
F

fsgraz

@fsgraz
About
Posts
37
Topics
6
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • Time to move to ESPHome?
    F fsgraz

    I needed to add my Victron devices to mycontroller v1, so I've created a Esphome device that includes the Victrons and 2 Mopeka Tank Pro devices, all via BLE Advertisement

    Playing around with the topics, I have been able to declare a node name/id for each of these BLE devices.
    each BLE device has a node name/id, childs name/id.

    sensor example:

    sensor:

    ----------------------------------------------------------

    Victron IP22

    ----------------------------------------------------------

    • platform: victron_ble
      victron_ble_id: victron_ip22
      name: "mains_charger_voltage"
      id: mains_charger_voltage
      type: BATTERY_VOLTAGE
      state_topic: "${mys_prefix}/${mys_gateway}/${node_victron_ip22}/${child_victron_voltage}/${C_SET}/${mys_ack}/${V_VOLTAGE}"

    on mycontroller I've created a mysensors mqtt virtual gateway, and voila'.

    from now on I can use Esphome to create other nodes, also in separate devices. I just need to keep track of the used node ids, that must be static.

    Node and sensors presentation is handled as well

    Hardware

  • RS485 transmit errors
    F fsgraz

    @sebastieng too much load ? one 120ohm on the far one should be enough

    Troubleshooting

  • Getting Better Range with NRF24L01 Modules
    F fsgraz

    @sindrome73 in the gateway and the nodes you have a

    #define MY_RF24_DATARATE RF24_250KBPS

    The default value is RF24_1MBPS.
    Just add the line above if it's not in your sketches
    Both gateway and nodes must be set to the same speed.

    Buon divertimento!

    My Project

  • Getting Better Range with NRF24L01 Modules
    F fsgraz

    lower the speed, it makes a huge difference.
    also, check the nRF24 power supply.

    My Project

  • Flame Sensor Not Triggering Setup
    F fsgraz

    @Jordan22xx do you mean via Serial Monitor from the pro mini ? if it works that would exclude hardware issues. do you poll the pin in the loop ? do you use an interrupt pin ?
    I would exclude problems with the mysensors library. is the gateway recognized by the controller ? Check if the node is registered and the sensor presentation works.

    Troubleshooting

  • Some questions on how gateway works
    F fsgraz

    @mfalkvidd I got what you mean.
    Yes, I am using the tcp connection using the mySensors serial API, not the USB<>UART serial interface ;-)

    I am running a gateway with the nRF24 at 1Mpbs for the fast & furious sensors (mainly energy meters); another at 250kbps for the battery supplied nodes (temp/hum and door sensors); another one at 1Mbps dedicated to the actuators / mission critical.
    60 nodes running

    Another on is a BLE<>Mysensors bridge between the Mopeka Tank Pro (2) and the TPMS (4)
    Another one is a fauxmo<>Mysensors bridge.

    A few esp32 based displays (round oled, 3.5", 7")

    :-)

    Home Assistant

  • Some questions on how gateway works
    F fsgraz

    @mfalkvidd thanks.

    I am happily running 6 esp32 WiFi gateways with nRF24L01+, but with the mysensors serial protocol, not mqtt. I don't see any value on MQTT for a local system based entirely on mysensors like mine, but I might be wrong and don't see the potential.

    I have a couple of them working as bridges, like between BLE sensors and mysensors, or Alexa an mysensors, meteo RSS Feed etc.

    Home Assistant

  • Keen to build again
    F fsgraz

    It depends a lot on what you can do. As @OldSurferDude wrote, if you want a cheap solution, this is the way to go. Also when you need something that is not available on the market. Here below the list of my camper nodes.

    IMO mySensors is the best possible alternative, if not the only one, to the systems that rely on standards, which require way too many resources for the job they are asked.

    In my case, several nodes have edge capabilities, because they have to keep working even if the controller is not responsive.

    fceb57d7-b24b-424e-88e4-b35b07281499-image.png

    General Discussion

  • Code Garage to the rescue.
    F fsgraz

    it is up and running

    General Discussion

  • Some questions on how gateway works
    F fsgraz

    let me also add that if the serial protocol is possible with an ethernet gateway, I would prefer that, w/o messing with MQTT.

    Home Assistant

  • Some questions on how gateway works
    F fsgraz

    Maybe is a silly point, but the node presents itself to the gateway, and afterwards you should see your node in your controller. The node ( in myController V1 that is my choice) I see the node's registration status as New. I need to edit the node properties and change the node status to Registered. After that the sensors show up.

    there's also an inclusion mode in the gateway if this is not possible with Vera:

    // Enable inclusion mode
    //#define MY_INCLUSION_MODE_FEATURE

    // Enable Inclusion mode button on gateway
    //#define MY_INCLUSION_BUTTON_FEATURE
    // Set inclusion mode duration (in seconds)
    //#define MY_INCLUSION_MODE_DURATION 60
    // Digital pin used for inclusion mode button
    //#define MY_INCLUSION_MODE_BUTTON_PIN D1

    https://www.mysensors.org/build/advanced_gateway

    Home Assistant

  • CHATGPT My new best friend!
    F fsgraz

    Fully agree with you about the library. The best one for sensors, amazingly stable and openly useable with lots of controllers.

    And the combo ATmega328P + nRF24L01+ just great.

    General Discussion

  • Code Garage to the rescue.
    F fsgraz

    @TheoL I wish nRF will be supported for longer time. Maybe just be free to specify the payload lenght instead ?

    But I am with you on wishing for MySensors protocol over wifi with extendable lenght.

    General Discussion

  • Status of my rv(camper) home automation system 2020-2025
    F fsgraz

    @OldSurferDude same here :grimacing:

    My Project

  • Status of my rv(camper) home automation system 2020-2025
    F fsgraz

    @fsgraz I have also a system with temperature and humidity sensors at home, but I don't think I will improve that

    My Project

  • Status of my rv(camper) home automation system 2020-2025
    F fsgraz

    @TheoL I use the nRF24L01+ because my use case is my RV, which is 6m long and 2m wide, so the radios are all working at the lowest power level

    My Project

  • Status of my rv(camper) home automation system 2020-2025
    F fsgraz

    @TheoL thank you !

    for me this excellent platform is all but dead.
    I just ordered 10 nRF20L01+ and 10 SI24R1 modules in SMD form factor, just in case.

    My Project

  • Status of my rv(camper) home automation system 2020-2025
    F fsgraz

    I'd like to share with you the figures after 6 years of dedicated work to my system:

    controller: #mycontroller v1
    database: influxDB v.1.8
    visualisation: grafana v.9.3.2
    events and mobile UI: node-red
    peer-to-peer VPN: ZeroTier One

    5 gateways
    3 displays
    52 nodes
    392 sensors

    935 sensor data/minute

    Hardware:
    Beelink SLIM-T4PRO Windows 10 Pro
    ESP32
    Arduino Nano
    Arduino RF-Nano
    Arduino Mini
    Radio nRF24L01+
    Mobile router Teltonika RUT241 E-SIM

    Thank you MySensors !

    My Project

  • Why is the output of ACS712 current measurement module unchanged?
    F fsgraz

    @ZenBlizzard in case you are measuring the output with a multimeter, you will get an averaged level, since AC current waveform should be sinusoidal and overlapped with the Vcc/2->2.56V in your case.
    To measure the current you need a decently high sampling and some math.

    #define SENSITIVITY	66		// mV/A
    
    const float readings = 5;
    const float alpha = 2.0 / (2 * readings + 1); 
    
    for (ifor = 0; ifor < 250; ifor++)
    	{
    		// Voltage
    		voltageSampleRead = analogRead(V) * vccRead / 1023 - vccRead / 2;	/* read the sample value including offset value*/
    		voltageSampleSum = voltageSampleSum + sq(voltageSampleRead);		/* accumulate total analog values for each sample readings*/
    		voltageSampleOffsetSum = voltageSampleOffsetSum + voltageSampleRead;
    		
    		// Current
    		currentSampleRead = analogRead(I) * vccRead / 1023 - vccRead / 2;	/* read the sample value including offset value*/
    		currentSampleSum = currentSampleSum + currentSampleRead * currentSampleRead;		/* accumulate total analog values for each sample readings*/
    		currentSampleOffsetSum = currentSampleOffsetSum + currentSampleRead;
    
    		wait(1);
    
    
    	}
    
    	voltageMean = voltageSampleSum / ifor;				/* calculate average value of all sample readings taken*/
    	voltageOffset = voltageSampleOffsetSum / ifor;
    	reading = (sqrt(voltageMean) - voltageOffset) * 230.0 / 1.0;		// read voltage / reported voltage.
    	voltage = round_to_dp(alpha * reading + (1 - alpha) * voltage,1);
    	Serial.println(voltage);
    	if (voltage < 25) voltage = 0;
    
    	currentMean = currentSampleSum / ifor;				/* calculate average value of all sample readings taken*/
    	currentOffset = currentSampleOffsetSum / ifor;
    	reading = (sqrt(currentMean) - currentOffset) / SENSITIVITY * 1000 - currentZeroOffset;		// subtract no load current.
    	if (reading < 0) reading = 0;
    	current = round_to_dp( alpha * reading + (1 - alpha) * current,2);
    
    General Discussion mysensors

  • Sensor to detect marijuana vape/smoke
    F fsgraz

    @Hellmark I have a sensor with a dust sensor, and it detects sigarette smoke pretty well.
    I use it in my RV and act on the fairing vents.

    Hardware
  • Login

  • Don't have an account? Register

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