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
P

pjr

@pjr
About
Posts
109
Topics
1
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • MQTT Ethernet Gateway with Wired RS485 Network
    P pjr

    Back then when I built my RS485 network with normal ethernet GW and domoticz I had to define static node id's for all the nodes(except GW) to get RS485 network working. Not sure if thats the case anymore.

    #define MY_NODE_ID 123
    
    Home Assistant

  • 2 or more DHT22 on 1 node with Domoticz
    P pjr

    Perhaps this could help?
    https://github.com/domoticz/domoticz/issues/276

    or this:
    https://github.com/domoticz/domoticz/pull/847

    Troubleshooting

  • Best 3d printers
    P pjr

    Lets link this topic: https://forum.mysensors.org/topic/9012/anyone-tried-the-creality-cr-10-3d-printer

    Enclosures / 3D Printing

  • void receive(const MyMessage &message)
    P pjr

    How about non blocking interrupt driven stepper library? For example: https://github.com/bjpirt/HotStepper

    General Discussion

  • Heartbeat working or not?
    P pjr

    Take a look at: https://github.com/domoticz/domoticz/blob/a668baf917333e93f92dd9bb7c77eef8e0bc4ce4/hardware/MySensorsBase.cpp#L486

    //V_TRIPPED
    //V_ARMED
    //V_LOCK_STATUS
    //V_STATUS
    //V_PERCENTAGE
    //V_SCENE_ON
    //V_SCENE_OFF
    //V_UP
    //V_DOWN
    //V_STOP
    //V_RGB
    //V_RGBW
    
    Domoticz

  • Request data from Domoticz
    P pjr

    @sindrome73 said in Request data from Domoticz:

    Hello
    So if I understand, a node from domoticz can only ask the status of a sensor connected already him, and not the status of other nodes of the network!
    So it is impossible for me to create nodes / displays to display the status of other sensors in the network.
    The only way is to use some old mobile phone as a display point

    You can directly request data from other node(nothing to do with domoticz).

    From documentation: https://www.mysensors.org/download/sensor_api_20#requesting-data

    Requests a variable value from gateway or some other sensor in the radio network.
    void request(uint8_t childSensorId, uint8_t variableType, uint8_t destination);
    childSensorId - The unique child id for the different sensors connected to this Arduino. 0-254.
    variableType - The variableType to fetch.
    destination - The nodeId of other node to request data from in radio network. Default is gateway.

    Other way is that you can present some text sensors in your "screen" node and update those from scripts at domoticz.

    Feature Requests

  • Request data from Domoticz
    P pjr

    Are your lights and temp sensors MySensored or would you like to get status from some random Domoticz devices?

    Feature Requests

  • Rs_485 change pins
    P pjr

    Would this help? https://forum.mysensors.org/topic/6502/how-to-use-softwareserial-library

    General Discussion

  • 💬 Building a wired RS485 sensor network
    P pjr

    @wallyllama

    another is having each node listen before transmitting

    How would you describe this functionality in MySensors rs485 code?
    https://github.com/mysensors/MySensors/blob/f5ed26c778c18107d1516bd86704f8c8f99ff571/hal/transport/RS485/MyTransportRS485.cpp#L246
    If I'm reading the code correctly it is exactly reading the bus and making sure no other node is sending before sending anything.
    The place where collision can happen is those 5 microseconds what the node is waiting to get driver tx enabled pin up.

    So the collision avoidance is already there. So what MyS R485 transport is missing is collision detection and recovery from collision.

    CAN bus( a mutli master 485 comaptible bus) is another option.

    Its disadvantage is small payload size.

    @nofox Its quite like how the Modbus works. By polling.
    I think there is some better ways to do that. Check these out from google:

    • RS-485 Token ring
    • uLAN
    • RS-485 RRP (Round Robin Protocol)
    • CSMA/CA
    Announcements

  • Domoticz TEXT sensor triggering
    P pjr

    How about presenting additional S_BINARY/V_STATUS in your node. In domoticz when text changes set this to ON/OFF. From there you now its time to request text from domoticz.

    Troubleshooting

  • Domoticz help using V_VAR1 and S_CUSTOM
    P pjr

    @dbemowsk said in Domoticz help using V_VAR1 and S_CUSTOM:

    So my questions are, first, are the V_VARx variables working? And if they are working, are they accessible from a device like the irrigation node?

    There is the current state of V_VARx variables in domoticz: MySensors set and send V_VAR

    And there is what you can store/request: hardware/MySensorsBase.cpp#L2241

    Domoticz

  • Domoticz cannot see devices from my sensors
    P pjr

    @bbrowaros It has happened to me so many times that it was easy to guess :D

    Troubleshooting

  • Domoticz cannot see devices from my sensors
    P pjr

    @bbrowaros Have you enabled: "Accept new devices" from settings?

    Troubleshooting

  • Presenting and controlling variables in domoticz
    P pjr

    Cannot get the point what you exactly mean but I think you should check for what child the message is for:
    if(message.sensor == CHILD_ID_aeg2 && message.type == ...) { ..do suff.. }

    Domoticz

  • Checking for current gateway connection state on Node?
    P pjr

    @phil2020 try this in your sketch: #define MY_TRANSPORT_WAIT_READY_MS (200ul)
    Its the "timeout" for waiting connection to gateway. Default 0 -> wait infinitely(?).

    Development

  • [solved] RS485 nodes stop sending data after some hours or days
    P pjr

    @mick Its still in use. I had one bus freeze since last "update post".

    The gateway did pull the line up to 190mV what seems to be enough to get traffic frozen. After "reboot" of the gateway it was still pulling the bus to 160mV so it must be some solder on wrong place and bad chinese pin headers or protoboards.. I have to rebuild the "motherboard" of the gateway..

    Troubleshooting

  • Anyone tried the Creality CR-10 3D printer?
    P pjr

    @dbemowsk there is the same with tensioning with motor: Tevo Tarantula Single Motor Dual Z Axis

    General Discussion

  • Anyone tried the Creality CR-10 3D printer?
    P pjr

    @dbemowsk There is one example: Anet A2 dual Z single motor

    General Discussion

  • Anyone tried the Creality CR-10 3D printer?
    P pjr

    @neverdie said in Anyone tried the Creality CR-10 3D printer?:

    According to this review of a different printer, the Anet A8's bed doesn't get hot enough to print ABS:

    Yes, the heated bed is bit weak but I think its quite weak on most sub 500€ printers having bigger beds than 200x200mm.
    There is some help for the problem. See: anet/a8/improvements/understanding_my_heatbed

    General Discussion

  • Detect change of state on input
    P pjr

    So you will be wiring all the switches with "0-5v line" to mega? Then just digitalRead all the pins on loop and compare with previous state. Simple as that..
    Perhaps some (de)bounce library could be helpfull since the switches can cause a bit of bounce.

    Btw. there is also a library to get interrupts from more pins but it wont help too much with Mega(from only 6 to 16 pins interrupt)..
    https://github.com/NicoHood/PinChangeInterrupt

    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