Ok, i'm resplying to myself:
Just remove library from Arduino library folder. Then clone github repo into it. Library manager will tell you that it is not installed but it should be working fine
NeoX
@NeoX
Best posts made by NeoX
-
RE: How to start build MySensors
-
RE: Arduino Mega + W5500 + BME280 = Connection refused all the time
@mfalkvidd Unfortunately, no i'm 100% sure that IP and MAC are unique.
I've also added MY_GATEWAY_ADDRESS and MY_IP_SUBNET_ADDRESS, no luck
Latest posts made by NeoX
-
Is Ethernet shield for Nano usable in any way?
Hi all!
It's not really a technical problem but i wanted to ask you.
I have a Deek-Robot W5100 Ethernet Shield for Nano. My question is, for what it is usable?
I've created a very simple sketch with MySensors (W5100 Ethernet + MQTT + DHCP + MY DEBUG messages, quite typcial setup) + 2 relay messages.
Debug build even won't fit into 30kB of flash
Adding optimization, turning off My debug drops usage to 24kB (78% of flash).
Room for application is so small, that i don't know for what this shield is used forBy the way, do you know any small boards compatible (like nano) with ethernet, with more flash ?
-
RE: MySensors PC Gateway - is it possible?
@hlehoux
Yes, but here i have a problem that i actually i want to monitor environment inside RACK with my servers.
My HomeAssistant controller is quite far from RACK, so i cannot connect directly.Using Ethernet Shield is possible, and as i see its only way now. But AFAIK it is waste of money, since ive got plenty of USB ports, so why not use them ?
I need to think, maybe it could be easily possible to develop transport module based on simple UART. Then use of standard raspberry pi gateway on PC with commented GPIO and SPI code should work
-
MySensors PC Gateway - is it possible?
Hi!,
I have following setup:
HomeAssistant<==MQTT Ethernet==>ServerPC<==SerialPort /dev/ttyUSB0==> Arduino running MySensors.
I'd like to ask if its possible to configure MySensors PC gateway to act as a gateway for sending messages from arduino to HomeAssistant?
I can't figure it out, but it seems that is MySensors PC is available only for Raspberry PI? -
Manually modify value received from request in HA
Hi all!
I wonder, is that possible to manually modify value stored in HA?
in my sketch i'm planing to receive pulse value from HA like described in pulse meter example:
https://www.mysensors.org/build/pulse_waterBut before i connect my node, is it possible somehow to modify values received via request() in HA?
So i would get any value i set?Thanks!
-
Home Assistant MySensors plugin bug?
Hi All!
I have a problem with MySensors integration in HA.
I've written a sketch with Serial transport with Arduino Mega board, connected to Home Assistant Raspberry Pi.
Now i've got following errors in log2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;255;3;0;14;Gateway startup complete. 2021-09-28 16:15:19 INFO (MainThread) [mysensors.handler] n:0 c:255 t:3 s:14 p:Gateway startup complete. 2021-09-28 16:15:19 DEBUG (MainThread) [homeassistant.components.mysensors.gateway] Node update: node 0 child 255 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Sending 255;255;3;0;20; 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;0;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;0;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;1;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;1;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;2;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;2;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;3;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;3;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;4;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;4;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;5;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;5;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;6;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;6;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;7;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;7;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;8;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;8;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;9;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;9;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;10;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;10;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;11;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;11;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;12;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;12;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;13;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;13;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;14;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;14;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;15;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;15;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;16;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;16;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;17;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;17;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;18;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;18;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;19;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;19;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;20;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;20;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;21;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;21;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;22;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;22;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;23;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;23;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;24;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;24;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;25;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;25;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;26;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;26;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;27;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;27;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;28;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;28;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;29;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;29;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;30;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;30;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got '' 2021-09-28 16:15:19 DEBUG (MainThread) [mysensors.transport] Receiving 0;31;1;0;2; 2021-09-28 16:15:19 WARNING (MainThread) [mysensors] Invalid <Message data="0;31;1;0;2;">: value must be either 0 or 1 for object value @ data['payload']. Got ''
Actually 0;31;1;0;2 is real answer from my atMega board, so what is going on here?
Tried several version of library (development, 2.4, also downgraded to 2.0), but nothing helpsHome assistant version is current - freshly installed.
Please help
-
RE: How to start build MySensors
Ok, i'm resplying to myself:
Just remove library from Arduino library folder. Then clone github repo into it. Library manager will tell you that it is not installed but it should be working fine -
How to start build MySensors
Hi all!
I'm trying to start contributing to the project, but i have problems understanding how to build MySensors library from scratch, and how to link it with Platformio/Arudino IDE?
Could anyone give me a hint? I have configured my project to use MySensors, which is currently using library dependency manager. And it is building. But how to force Platformio/ArduinoIDE to builld MySensors sources and link it with my project locally?
Thanks for any help!
-
RE: Unblocking loop when DHCP fails
Unfortunately, i don't find any solution at the moment.
i've readed mySensors source carefully, and it seems that if it's not connected to MQTT server (or doesn't have IP from DHCP), it will drop in internal loop which will continously try to connect every x seconds.
mySensors code need to be rewritten i guess, at least part of ethernet client to not block when connection fails. -
RE: Unblocking loop when DHCP fails
@electrik I've checked, indeed waiting for DHCP is one of problems.
Tried to use Static IP (however, it's not really solution for my installation), but then framework is waiting for connection to MQTT server.
I think it should be improved to use IRQ/Timers, i need to see through framework code -
RE: Unblocking loop when DHCP fails
Tried, but it doesn't help.
My question is do anyone could confirm, that ethernet MQTT gateway could work without connection?