No help from the community! Sad!!!
Posts made by vikasjee
-
RE: MYSBootloader 1.3.0-beta.3
@tekka, Thanks for the link to the beta.4. bootloader. I have tried burning nodes using these and tested them by uploading the FW using MySController 1.0beta_b3316 (latest update meant for MySensors2.2.0) with SerialGatewaySketches using both MySensors2.2.0_rc1 and MySensrs2.2.0_pre1 libraries.
MysController doesn't seem to even recognize the Beta.4 bootloaded Nodes (Promini 5V16Mhz with default provided fuse settings from Makefile). The extra nRF chip wiring checks and precautions (0.01uF and 100uF Caps) have been taken. What might be the problem? How to debug when SerialMontitor cant be used? Any Network Sniffer link if that helps...
I guess the MySensors library version of the SerialGateway sketch may be posing a problem. Can you please help me with a link of the correct MySensors library version to use with beta.4 bootloaded nodes?
Any help will be appreciated...
-
RE: NodeManager: plugin for a rapid development of battery-powered sensors
When do you plan to release V1.7 ?
-
RE: π¬ NodeManager
@Sergio-Rius, with RF24_VERBOSE on, the system crashes in 40-50 seconds especially if you're connected to the serial monitor or if your serial gateway has this #DEFINE on.
-
RE: π¬ FOTA (Wireless Programming)
@gohan Ook! Are you talking about installing MysController on Raspberrypi (I think not)? If you are going to run it on Windows and connect to Raspi Ethernet gateway remotely then using the the same option we can remotely connect to a serially connected gateway on Raspberrypi (using a USB port) from MysController running on Windows.
Are there steps somewhere to install MysController on Raspi [some Windows pre-installer running on Debian Linux]? I remember reading some Mysensors posts here a couple of years back(!!!), but cant seem to locate it now...
-
RE: π¬ NodeManager
@user2684, Sorry, couldn't revert to your query earlier as i was away building a small library.
Expanding onto my earlier post on the requested Power Management feature -
A simple switch will complete a circuit whenever its switched ON. This allows for placing the switch on the ground return wire too. So only a single GND-ON (Switched ON) will complete the circuit (without requiring an additional Vcc-ON switch).Now, with a developer configured #DEFINE GND_ON_POWER =1 may be checked in NodeManager's PowerManagement functions to DigitalWrite(Digital_GND_ON_Pin, LOW)
for a switchON effect.Additionally, To provide an extra current to a sensor (i.e. more than a ~10mA-20mA, a max safe current provided by an Arduino pin) an external power source (other than Arduino +5V0 OR +3V3) may be provided by that external power source (of course with with a common ground wire between Arduino and that powersource to complete the circuit.)
Also, with the current 2Wire PowerOn methodology, the VccPowerOn switch can provide only one positive voltage (that provided by Arduino Vcc, say +5V0) but not +3V3 (say) to the sensors. If some attached sensors require the other voltage (+3V3), then, this 2Wire PowerOn method will not help. Whereas, a single GND_On power methodology will still switch the circuit thus managing the Power to those sensors too.
[PS: Signal Voltage Levels will still need to be managed by the developer attaching those sensors to the node]I think this simple feature will add on to the power of the PowerManagement functions.
Hope this clears some air ? Open to suggestions...
-
RE: π¬ FOTA (Wireless Programming)
@gohan , Thanks for this idea... I am going to try this with a serial gateway instead. Do you perceive a problem? Will this work only with an ethernet gw?
-
RE: Raspberry Pi SD Card wear out?
Try using Berryboot on SD card with a USB /pen drive. It will help in SD card wear out and power out cases. I am running multiple Raspis with multi boot option on Berryboot (added advantage ) for the last 2+years. Not much of a problem till date. Lots of power outages here... No UPS support!
-
RE: Multithreading with Arduino
Can this easily be modified for LED and Tone?
Is there any other library to do so?
-
RE: π¬ NodeManager
@user2684, Will you like to consider adding a #DEFINE to let user configure PowerOn function to select "GND-On" or "Vcc-On" (5V0)?
With this GND-On PowerOn, a single GND wire controlled by a digital pin can control the power instead of 2 wire poweron control. [so many control words :)]
For devices that require more than ~10mA current (~Arduino pin current) this GND-On configuration can help externally supplied higher powered V+ current to switch the devices! Thus, will also help 3V3 devices to be controlled by PowerOn, of course, with external 3V3!
-
RE: I have great problem with raspberry and domoticz and mysensors gateway !
Use Berryboot AND fast USB drive to solve most of the problems related to corruption on SD card due power failures and number of write cycles. I have been using it for 2+ yrs now...
-
RE: π¬ Battery powered glass touch switch
@Baoshi-Zhu, @Nca78 , What are the red and black wires under the top pad for? Have you soldered them onto the TTP module touch pads or to the led output?
Have you tried using the other side of the of the touch pads on TTP module since on this side the ICs and other components obstruct the clean surface for the glass panel interface? That side too seems to be sensitive enough...
Also, You seem to have scraped the touch pads and tinned them? Any specific gains?
-
RE: Adding 4th dimmer. Struggle.
Just out of curiosity, Is there a standard dimmer module you are using or is it custom made?
Hope you have checked the current being supplied since that is limited. The current (signal) amplifier configuration on the dimmer module may be an issue if not designed for low current signals (especially if there are multiple parts attached to the same arduino).
-
Where do i get the my-board.json and other related script files to add a MYSBootloader board in Platformio
There are specific script files required by Platformio to add a new custom board like a MYSBootloader one. Can someone help me?
-
RE: π¬ NodeManager
@user2684 No issues! When are you planning for 1.7.0? Looking forward to an early release especially the IO-Expander MCP23017 support...
-
RE: π¬ NodeManager
Hi, what's your calendar for v 1.6.0. I was looking forward to IO-Expander MCP23017 and TTP226/9 support in this release...
-
RE: Windows GUI/Controller for MySensors
@tekka No Issues. Thanks for the response.
I have tried all of these with all my 35 radios (were all working before the upgrade) and equal number of nodes!
I will go through all this sequence once again though... Thanks for clearing the doubts on MYSController build. Indebted!
-
RE: Windows GUI/Controller for MySensors
@tekka please help with the MysController build 3312 if that one works with MYSBootloader for MySensors 2.1.1 master.
-
RE: Windows GUI/Controller for MySensors
@tekka , there seems to be an issue with the build 3314 and MYSBootloader for MySensors 2.1.1,as noted above. Any good, working previous version should do...
-
RE: Windows GUI/Controller for MySensors
@tekka , I upgraded Arduino IDE from 1.6.0 to 1.8.2 recently. Burnt the gateway with the MySensors2.1.1 gateway sketch and the nodes bootloader with MysBootloader1.3.0beta3 from the master branch on github.
As per my understanding the Node with MysBootloader should connect to the Gateway (checked with MysController 1.0beta b3314) where i can specify the Firmware for this new node. But i am not able to get the Node entry in the left hand side tree in MysController. Upon checking the MysController Debug, there are a stream of messages from the node but are being endlessly repeated:
6/12/2017 19:24:59 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:24:59 RX 0;255;3;0;9;TSF:MSG:GWL OK 6/12/2017 19:25:01 RX 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=1,l=1,sg=0:235 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:BC 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:GWL OK 6/12/2017 19:25:08 RX 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=1,l=1,sg=0:235 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:BC 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:GWL OK
I am unable to get to the root of the problem... and could not find any mention of a similar problem on this forum (searched far and wide
)
Any pointers to a solution or hint of what may be wrong will definitely help me save time...
-
RE: Windows GUI/Controller for MySensors
@tekka hi, can we access the previous build if that is working for MySensors2.1.1?
-
RE: Has STREAM been streamlined yet for communications from Node to the Gateway?
@Yveaux , ohk! BTW, Is there any Repetition check and discard function in the library or atleast a way to do that?
-
RE: Has STREAM been streamlined yet for communications from Node to the Gateway?
@Yveaux, Thanks for the clarification on stream direction. I will search the right functions for it.
For the "largeness" of data thing, Will a, say, 5Kb-50Kb (150-1500 buffered messages) be large to be streamed over nRF24 from node/repeater to controller/gw?
-
RE: MYSBootloader node doesnt connect to gateway
Upon further investigation of the TransportMessage function it looks like GW has been configured with MY_REPEATER_FEATURE = ON! Is it normal?
Shouldnt this be false for a gateway sketch? Or does this mean that the MYSBootloader.hex file on the new node has this Repeater feature on?@hek, Your thoughts... Am i prodding in the right direction or am off-track completely?
-
RE: MYSBootloader node doesnt connect to gateway
According to debug message details in MyTransport.h the flood control prevents pinging GW in too short intervals though Uplink is OK (TSF:CKU:OK,FCTRL).
@hek, Need your help (or somebody who can @Yveaux ?) help me correct this issue... Looks like a bug.
-
RE: MYSBootloader node doesnt connect to gateway
@vikasjee said in MYSBootloader node doesnt connect to gateway:
Re: MYSBootloader 1.3.0-beta.3
I upgraded Arduino IDE from 1.6.0 to 1.8.2 recently. Burnt the gateway with the MySensors2.1.1 gateway sketch and the nodes bootloader with MysBootloader1.3.0beta3 from the master branch on github.
As per my understanding the Node with MysBootloader should connect to the Gateway (checked with MysController 1.0beta b3314) where i can specify the Firmware for this new node. But i am not able to get the Node entry in the left hand side tree in MysController. Upon checking the MysController Debug, there are a stream of messages from the node but are being endlessly repeated:
6/12/2017 19:24:59 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:24:59 RX 0;255;3;0;9;TSF:MSG:GWL OK 6/12/2017 19:25:01 RX 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=1,l=1,sg=0:235 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:BC 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:GWL OK 6/12/2017 19:25:08 RX 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=1,l=1,sg=0:235 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:BC 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:GWL OK
I am unable to get to the root of the problem... and could not find any mention of a similar problem on this forum (searched far and wide
)
Any pointers to a solution or hint of what may be wrong will definitely help me save time...
Would appreciate any help... I am completely stuck for the last 2 days -
MYSBootloader node doesnt connect to gateway
Re: MYSBootloader 1.3.0-beta.3
I upgraded Arduino IDE from 1.6.0 to 1.8.2 recently. Burnt the gateway with the MySensors2.1.1 gateway sketch and the nodes bootloader with MysBootloader1.3.0beta3 from the master branch on github.
As per my understanding the Node with MysBootloader should connect to the Gateway (checked with MysController 1.0beta b3314) where i can specify the Firmware for this new node. But i am not able to get the Node entry in the left hand side tree in MysController. Upon checking the MysController Debug, there are a stream of messages from the node but are being endlessly repeated:
6/12/2017 19:24:59 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:24:59 RX 0;255;3;0;9;TSF:MSG:GWL OK 6/12/2017 19:25:01 RX 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=1,l=1,sg=0:235 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:BC 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:25:06 RX 0;255;3;0;9;TSF:MSG:GWL OK 6/12/2017 19:25:08 RX 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=1,l=1,sg=0:235 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:BC 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:FPAR REQ,ID=255 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:CKU:OK,FCTRL 6/12/2017 19:25:09 RX 0;255;3;0;9;TSF:MSG:GWL OK
I am unable to get to the root of the problem... and could not find any mention of a similar problem on this forum (searched far and wide
)
Any pointers to a solution or hint of what may be wrong will definitely help me save time...
-
RE: Has STREAM been streamlined yet for communications from Node to the Gateway?
@Yveaux OTA F/W updates are from Controller to Node, but what about the reverse route - from Node to Controller/Gateway etc.
-
Has STREAM been streamlined yet for communications from Node to the Gateway?
Re: Sending image-data over the MySensors network.
I am trying to implement the streaming of backlog messages from a Node/Repeater to the Gateway/Repeater and trying to understand whether the sending of image data or any other bigger data (> 5x-1000x payload size ~ 50KB+) has been incorporated in the core as yet? especially on the lines (or similar) of recommendations made by @Oitzu [header optimizations] above...
Are we considering Node Message Streaming in (very
) near future? That would be a very important feature for the resilience of the MySensors platform...
-
RE: NodeManager: plugin for a rapid development of battery-powered sensors
I can help test them both for sure...
Will it be a good idea to have external file based extension to Node Manager?
I will like to extend the configuration child and probably add node authentication through another security-child. Self Healing Network capabilities are next on my list.
-
RE: NodeManager: plugin for a rapid development of battery-powered sensors
Can you please consider support for MCP23017 IO-Expander And TTP226/TTP229 Touch control sensor modules in I2C mode?
-
RE: NodeManager: plugin for a rapid development of battery-powered sensors
@user2684 This is exactly i had mentioned in my requirement for IOExpanded pins attached to any sensor or virtual buttons... getting the same child_id everytime. Hope its clear now...
-
RE: domoticz rules == node red?
is there a way to use NodeRed for rules and exporting them to domoticz's Lua?
-
RE: NodeManager: plugin for a rapid development of battery-powered sensors
@user2684 , Thanks for the new version.
Are you planning to include Virtual Button and IOExpander(MCP23017) support too? Thst would really help especially adding consistent child-ids for the expander pins, just like multiple temp sensors on the SPI bus...
-
MCP23017 Library for MySensors?
Re: Your workshop
Is there any MCP23017 Library for MySensors?Also, How do you translate address for an extended pin on an MCP23017, when a controller sends an action message for, say, a relay/LED connected to one of the "IOExpanded" pins, with ChildID consistently?
[MCP23017 Topic search reveals only a single comment in the "(/topic/229/your-workshop)" topic]
-
RE: π¬ MyController.org
@jkandasa Will it be possible to provide a step procedure tutorial?
-
RE: Sensebender/Dualoptiboot OTA HowTo in Mysensors
Any sample optimised sketch for the OTA enabled sketch?
-
RE: MQTT Client Gateway / Node Controller / OTA
@Samuel235 What are your results?
-
RE: Status Display Based on WS2812b LEDS
@kallii, How are you doing with this project of yours? Any links or pointers will be helpful in my project which is quite similar...
-
RE: C.H.I.P.
@fernando-alvarez-buylla thats really awesome. Can you please post the steps?
-
RE: TTP226 module touch panel serial mode library for Mysensors?
@AWI Thanks for the piece of code. Now i can see where i was wrong! Let me run it... this seems to be missing the interrupt part though. I will try using DV on Int2...
-
RE: TTP226 module touch panel serial mode library for Mysensors?
@AWI I need to use the Serial Mode ( 2 pins ) in TTP226 module instead of Direct Mode which requires ( 9 pins) on Arduino with Interrupt enabled on 8 inputs. Hence the request for the Serial Mode TTP226 library
-
TTP226 module touch panel serial mode library for Mysensors?
Re: How To: Make a Simple/Cheap Scene Controller (with video)
Do we have any serial mode library?
-
RE: π¬ Wall Switch Insertable Node
Great! Which is the one with the transformer? any link to it?
-
RE: π¬ Wall Switch Insertable Node
Fantastic! Can i buy it pre-assembled from somewhere?
-
RE: Battery based atmega328p sensor with SMD nrf24l01+
@alexsh1 Can you please publish your full node design (SCH+BRD) or/and PDFs with ATSHA204A and SPI EEPROM? I am really interested in checking it out! Also the relevant sketch to understand how the battery operations are really supported esp. with interrupt handler et al.
-
RE: Domoticz full integration
Is there a fully functional domoticz integration now?
-
RE: Sleep support in Gateway
@tbowmo Can a ESP8266 kind of device be helpful here? Especially the kinds of NodeMCU V3 with huge memory and flash mem size? And these days they are getting quite economical too... (in terms of both costs and power requirements)
-
RE: Windows GUI/Controller for MySensors
Was @pdey 's change applied to the dev branch?
Any suggestions for debug messages to the controller from remote nodes?
@Mark-Swift said:
@tekka I've tried to apply @pdey 's change to the current dev branch; but due to the recent refactoring, wasn't successful - I'll keep trying.
Would you happen to have any other suggestions how we can get debug messages back to the controller from remote nodes? Some of my nodes are running some fairly complex code and without debug it becomes a tedious task.
Many thanks in advance,
Mark
-
RE: Yet another PCB to address (nearly) all Arduino pins
@phil83 said:
Hi TD,
many thanks for the library, I incorporated the drill holes and it looks much better now!Best regards,
PhilippHI Philipp,
Will you like to share your files with this final version of your PCB? This is an excellent stuff. Appreciate your design skills...
-
RE: Windows GUI/Controller for MySensors
@Anticimex Can you please share the Nodes Code?
-
RE: Node-Red as Controller
@Dheeraj said:
where are you storing the sensor data for presentation , stream. let me know which database you are using here? you can have another flows for sending the the request to sensor node via serial port. I tried it same some time back . may be i can share it here.
@Dheeraj, Will you like to share your way out here?
-
RE: Serial Gateway Code to Query Node's Payload?
@hek said:
The radio consumes about 13.5mA in RX mode according to datasheet. Not sure about the clones we all use here, probably higher.
13mA is still a little too much when running node on batteries. Will drain fast. So the question is the usecase for fiddling with interrupts other than speeding up the data transmission (pulling stuff out of the radios FIFO buffers so they don't fill up).
Tx consumption (though it can be put to sleep) will definitely be higher than Rx consumption, but the question is more about Push vs Pull. So, my question is more towards waking up a loooong sleeping (an hour or more sleep - Ex. a humidity sensor in a bathroom) node say only in Emergency conditions (in the example here, just to check if the bathroom floor of an elderly is dry or not before (s)he uses the bathroom ...)
-
RE: Help understanding addressing and log messages
@pete1450 said:
Based on this: http://www.mysensors.org/build/serial_api
Example 1
id Node-id 0
Child-id 0
internal message
no ack
payload is type I_LOG_MESSAGE
and your actual payload is "read: 21-20-0 s=0,c=1,t=0,pt=7,l=5:16.7"EDIT: I'm not sure if there is an easier place to get this, but I looked in the code for process where it prints "read" messages and found this to describe the payload. Send is also in there.
Mysensor.cpp Line 221-222
-
RE: Serial Gateway Code to Query Node's Payload?
Do we have any "Wake on LAN/WiFi" kind of facility in MySensors to save energy in this kind of scenario? I believe i have read that this kind of functionality is available in nRF24L01...
-
RE: MQTT Request from a node
@FotoFieber said:
[{"id":"ba386057.845d3","type":"mqtt-broker","broker":"192.168.92.4","port":"1883","clientid":"NodeRed"},{"id":"c1a0dd11.3e5f2","type":"mqtt in","name":"RGB Colorpicker","topic":"openHAB/out/RGBLight/command","broker":"ba386057.845d3","x":152.33332061767578,"y":179.66666412353516,"z":"914d079b.6eb2f8","wires":[["46c3882f.b93c78","c1246f87.3edb9"]]},{"id":"1ab94043.e546c","type":"mqtt out","name":"MyRGBLed","topic":"MyMQTT/30/1/S_LIGHT_LEVEL","qos":"","retain":"","broker":"ba386057.845d3","x":617.3333231608073,"y":98.66666412353516,"z":"914d079b.6eb2f8","wires":[]},{"id":"46c3882f.b93c78","type":"function","name":"HSV convert","func":"if (msg.payload == 'OFF') {\n msg.payload = 'RGB 0,0,0';\n return msg;\n} \n\nif (msg.payload == 'ON') {\n msg.payload = 'RGB 255,255,255';\n return msg;\n} \n\n\nvar res = msg.payload.split(\",\");\n\nh = res[0];\ns = res[1];\nv = res[2];\n\nvar r, g, b;\n\tvar i;\n\tvar f, p, q, t;\n \n\t// Make sure our arguments stay in-range\n\th = Math.max(0, Math.min(360, h));\n\ts = Math.max(0, Math.min(100, s));\n\tv = Math.max(0, Math.min(100, v));\n \n\t// We accept saturation and value arguments from 0 to 100 because that's\n\t// how Photoshop represents those values. Internally, however, the\n\t// saturation and value are calculated from a range of 0 to 1. We make\n\t// That conversion here.\n\ts /= 100;\n\tv /= 100;\n \n\tif(s == 0) {\n\t\t// Achromatic (grey)\n\t\tr = g = b = v;\n\t\t\n\t} else\n\t{\n \n\th /= 60; // sector 0 to 5\n\ti = Math.floor(h);\n\tf = h - i; // factorial part of h\n\tp = v * (1 - s);\n\tq = v * (1 - s * f);\n\tt = v * (1 - s * (1 - f));\n \n\tswitch(i) {\n\t\tcase 0:\n\t\t\tr = v;\n\t\t\tg = t;\n\t\t\tb = p;\n\t\t\tbreak;\n \n\t\tcase 1:\n\t\t\tr = q;\n\t\t\tg = v;\n\t\t\tb = p;\n\t\t\tbreak;\n \n\t\tcase 2:\n\t\t\tr = p;\n\t\t\tg = v;\n\t\t\tb = t;\n\t\t\tbreak;\n \n\t\tcase 3:\n\t\t\tr = p;\n\t\t\tg = q;\n\t\t\tb = v;\n\t\t\tbreak;\n \n\t\tcase 4:\n\t\t\tr = t;\n\t\t\tg = p;\n\t\t\tb = v;\n\t\t\tbreak;\n \n\t\tdefault: // case 5:\n\t\t\tr = v;\n\t\t\tg = p;\n\t\t\tb = q;\n\t}\n\t\n\t}\n\tr = Math.round(r * 255);\n\tg = Math.round(g * 255);\n\tb = Math.round(b * 255);\n\t\n //var erg = {hue:h,saturation:s,value:v, red:r, green:g, blue:b};\n \n msg.payload = 'RGB ' + r + ',' + g + ',' + b;\n\n\n\n\nreturn msg;","outputs":1,"valid":true,"x":395.3333231608073,"y":126.66666412353516,"z":"914d079b.6eb2f8","wires":[["1ab94043.e546c","c1246f87.3edb9"]]},{"id":"c1246f87.3edb9","type":"debug","name":"","active":true,"console":"false","complete":"false","x":621.3333129882812,"y":255.6666488647461,"z":"914d079b.6eb2f8","wires":[]},{"id":"e8effb31.171008","type":"mqtt in","name":"RGBLED Returncode Lichwert","topic":"MyMQTT/30/2/V_LIGHT_LEVEL","broker":"ba386057.845d3","x":195.99996948242188,"y":240.66665649414062,"z":"914d079b.6eb2f8","wires":[["a5d4d602.5a2b28"]]},{"id":"a5d4d602.5a2b28","type":"function","name":"RGB to HSV","func":"b = msg.payload % 256 ;\ng = ((msg.payload - b) / 256) % 256;\nr = (msg.payload - b - g*256) / 256 / 256;\n\n\t\n r = r/255, g = g/255, b = b/255;\n var max = Math.max(r, g, b), min = Math.min(r, g, b);\n var h, s, v = max;\n\n var d = max - min;\n s = max == 0 ? 0 : d / max;\n\n if(max == min){\n h = 0; // achromatic\n }else{\n switch(max){\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n\n h *=360;\n s*=100;\n v*=100;\n\n\t\n// var erg = {hue:h,saturation:s,value:v, red:r, green:g, blue:b};\n \nmsg.payload = h + ',' + s + ',' + v;\n\n\nreturn msg;","outputs":1,"valid":true,"x":505.3333231608073,"y":343.66666412353516,"z":"914d079b.6eb2f8","wires":[["c1246f87.3edb9","792d7484.86d28c"]]},{"id":"792d7484.86d28c","type":"mqtt out","name":"RGB in Openhab setzen","topic":"openHAB/in/RGBLight/state","qos":"","retain":"","broker":"ba386057.845d3","x":736.3333231608073,"y":339.66666412353516,"z":"914d079b.6eb2f8","wires":[]},{"id":"85a991b0.7a567","type":"mqtt in","name":"Laura Fernbedienung","topic":"homegear/1234-5678-9abc/event/10/#","broker":"ba386057.845d3","x":129,"y":36,"z":"914d079b.6eb2f8","wires":[["e913dcc9.16ec2","c1246f87.3edb9"]]},{"id":"e913dcc9.16ec2","type":"function","name":"Fernbedienung auf RGB Licht","func":"if (msg.payload != '[true]') return;\n\n\nif (msg.topic == 'homegear/1234-5678-9abc/event/10/1/PRESS_SHORT') {\n msg.payload ='OFF'; \n} \nelse if (msg.topic == 'homegear/1234-5678-9abc/event/10/2/PRESS_SHORT') {\n msg.payload = 'RGB 255,187,0';\n}\nelse if (msg.topic == 'homegear/1234-5678-9abc/event/10/3/PRESS_SHORT') {\n msg.payload = 'RGB 255,0,0';\n}\nelse if (msg.topic == 'homegear/1234-5678-9abc/event/10/4/PRESS_SHORT') {\n msg.payload = 'RGB 255,6,226';\n}\nelse if (msg.topic == 'homegear/1234-5678-9abc/event/10/5/PRESS_SHORT') {\n msg.payload = 'RGB 177,10,255';\n}\nelse if (msg.topic == 'homegear/1234-5678-9abc/event/10/6/PRESS_SHORT') {\n msg.payload = 'RGB 0,255,0';\n}\n\nreturn msg;","outputs":1,"valid":true,"x":388,"y":57,"z":"914d079b.6eb2f8","wires":[["1ab94043.e546c","c1246f87.3edb9"]]}]```
Seems to be some simple syntax error here. Is there a way to find out these kind of errors in some editor or visual tools? NodeRED import from clipboard doesnt even let it go any further.
-
RE: MQTT Request from a node
@FotoFieber said:
On my pi2 I have installed node-red and do all the 'wiring' of messages between different nodes there. Maybe this could be a solution for you too.
Would you like to share the details of your setup and the flow? It would really be interesting to explore...
-
RE: NodeJs controller install error
Can't the npm install here (in the nodejs controller) and npm used for nodeRED be combined to get the best result for MySensors Controller?
Now comes the more difficult question but a more interesting one: Has this been done by somebody who's ready to share the artifacts in this open domain?
-
RE: Node-Red as Controller
@Heinz ,
Thanks for the flow. kindly post how you have referenced mysensors library for the flow? Split function is spitting out an error as is.
OR Is it required at all?Function Error: TypeError: Cannot call method 'split' of undefined (line 8, col 31)
-
RE: Node-Red as Controller
@Heinz Thanks a lot for the details. Actually i am looking out for a confirmation and method/way of using the nodejs controller code in NodeRED somehow (looking out for direct porting or with minimal effort) so that all the functions of a MySensor controller may be made available under NodeRED and hence a NodeRED Controller for MySensor...
This way we may port many other functionalities available as nodejs scripts into NodeRED controller...
Any way forward or a nudge into that direction will also help...
-
RE: Node-Red as Controller
@Heinz said:
I managed to get the following configuration to run:
MySensors --> MySensorsEthernetGateway --> FHEM --> FHEM/MQTTDevice --> Mosquitto--> Node-Red
FHEM and Mosquitto are running an a raspberry.
Running Node-Red on IBM Bluemix in the cloud also succeeded to connect to my local mosquitto broker.@Heinz Do you have some code/work/instreuctions to share to get an insight?
-
RE: Node-Red as Controller
...Will post a full working example when i have everything ready.
Any updates on this please?!
-
RE: Getting childId from IncomingMessage
@bluman said:
Hek,
OK, thanks for that however it still wont compile.
void incomingMessage(const MyMessage &message) {
if (message.type == V_DIMMER && message.childId == 0) {Here is the error.
_150309_RBG_LED_Driver.ino: In function βvoid incomingMessage(const MyMessage&)β:
_150309_RBG_LED_Driver.ino:82:43: error: βconst class MyMessageβ has no member named βchildIdβUse message.sensor == 0
-
RE: NodeRED/thethingbox
Just curious! Has anybody done any implementations of MySensors Controller on TheThingBox, especially the people who are interested in Raspi controllers!?! TheThingbox looks very promising and so does Node-Red.
-
RE: compiling issue with MYSBootloader.
By any chance, can we change the CE and CSN pins from 9-10 to 7-8 in the MYSBootloader safely and easily? I tried running through the code but stopped short at MYSBootloaderHW.h file where
#define SPI_CSN 2 // Arduino Pin 10 <-> Bit 2 of port B
#define SPI_CE 1 // Arduino Pin 9 <-> Bit 1 of port B
have been defined and since pins 7-8 change would mean the port change the operations may differ.
I am using the 9-10 pins elsewhere for their PWM. -
RE: Arduino NRF24L01 simple universal board
@hek said:
@vikasjee said:
i have a similar integrated product much smaller in size. You may message me if you are interested!
Could you please give some more information and share the design files?
This is your first post here on the forum and we will be extra picky on you to keep spam out. If you want to promote a product we will require it to be open hardware and you should contact info@mysensors.org for further instructions.
Sure! Am sorry didnt know about that. Will contact info@mysensors.org for instructions.
-
RE: Arduino NRF24L01 simple universal board
@shabba i have a similar integrated product much smaller in size. You may message me if you are interested!