Hello,
yes.
https://www.home-assistant.io/integrations/mysensors#nodes
using nodes Configuration Variable
nodes:
100:
name: 'MyName'
Cheers.
Hello,
yes.
https://www.home-assistant.io/integrations/mysensors#nodes
using nodes Configuration Variable
nodes:
100:
name: 'MyName'
Cheers.
@alowhum said in HomeAssitant MySensors plugin Roadmap:
Doesn't Home Assistant lack a WYSIWYG of settings things up? That's what kept me from switching away from Domoticz.
Yes you must do settings in yaml format, but it's good documented.
Hello,
I'm long time user of Domoticz and MySensors ().
Domoticz is robust, work really fine, scriptable ... but the UI is old web style, and the python plugin interface not really used (probably about to difficulty to not use async libraries)
I have discover HASS recently, i'm surprised by all the plugins and the simplicity to install/configure it. It use modern web interface, and the new LoveLace UI seen to be awesome.
But (there are always a but ),
The support of MySensors is limited: if i have good understand, i have the obligation of take all my sketch and add the code to send all sensors values at the beginning of the loop (just one time) and the code to confirm the value in the receive() ; but MySensors implement the ack and since i save the status of the sensors in the eeprom, the controller can do the same.
First, have i really good understand ? and if yes, do you plan to implement more the MySensors functions ? (i have tried to read plugin code, but i m not au good python programmer, so i can't help)
Thank you.
Ps: sorry to writing English like a french cow
@betonishard said in Gateway migration:
I switched from the serial gateway to the lan gateway. I solved this in domoticz by updating the serial one with the LAN. Worked immediately without re-adding whatsoever. Maybe lucky?
i will try and return feedback, thank you
Domoticz are not moving, only the connected gateway from "MySensors Gateway USB" to "MySensors Gateway with LAN interface".
I want to migrate nodes in same way. The problem is i don't want to remake all script, configuration with the new node references.
What is the migration logic to do that ?
Thank you.
Hello,
I have started with Domoticz and usb serial gateway. But now i want to go to raspberry wired gateway to use MYSController and OTA update.
Do you know how i can switch gateway without loosing my domoticz configuration ?
My goal is to have the same node from old gateway to the new in domoticz, may be with sql ?
Thanks.
Hi,
Its possible to use arduino sketch in raspberry (see https://forum.mysensors.org/topic/6618/gateway-ethernet-raspberry-sensors/4)
i have make some test who work.
Hi, i have tryed to put some code directly in examples_linux/mysgw.cpp .
The code run and work:
...
#include <MySensors.h>
#define ARDUINO 100
// This space is intended to be used to include arduino libraries
#include <MySensors.h>
//#include <DHT.h>
//#define DIGITAL_INPUT_SENSOR 7 // GPIO4
#define CHILD_ID 1 // Id of the sensor child
#define SLEEP_TIME 5000
//MyMessage msg(CHILD_ID, V_STATUS);
#define DEBUG true
//array of pin used for input button
static const short int digital_input_pin[] = {7,11,13,15};
bool Tripped[sizeof(digital_input_pin)/sizeof(digital_input_pin[0])];
bool State[sizeof(digital_input_pin)/sizeof(digital_input_pin[0])];
MyMessage msg[sizeof(digital_input_pin)/sizeof(digital_input_pin[0])];
#undef ARDUINO
void setup()
{
// Setup locally attached sensors
for(unsigned int i=0; i < sizeof(digital_input_pin)/sizeof(digital_input_pin[0]); i ++){
if (DEBUG == true){
Serial.print("init:");
Serial.print(i);
Serial.println(digital_input_pin[i]);
}
pinMode(digital_input_pin[i], INPUT);
State[i] = loadState(CHILD_ID+i)?true:false;
Tripped[i] = false;
msg[i].sensor = i;
msg[i].type = V_STATUS;
}
}
void presentation()
{
// Present locally attached sensors here
sendSketchInfo("Arduino Jarvis", "0.9");
for(unsigned int i=0; i < sizeof(digital_input_pin)/sizeof(digital_input_pin[0]); i ++){
present (CHILD_ID+i, S_BINARY);
}
}
void loop()
{
for(unsigned int i=0; i < sizeof(digital_input_pin)/sizeof(digital_input_pin[0]); i ++ ){
bool tripped = digitalRead(digital_input_pin[i]);
if (Tripped[i] != tripped){
Tripped[i] = tripped;
State[i] = ! State[i];
send(msg[i].set(State[i]));
saveState(CHILD_ID+i, State[i]);
if (DEBUG == true){
Serial.print("send to mg: ");
Serial.print(State[i]);
Serial.print(", for pin: ");
Serial.println(digital_input_pin[i]);
}
}
}
// Sleep until interrupt or timeout
// TODO: Just one pin interrrupt !
sleep(digitalPinToInterrupt(digital_input_pin[0]), CHANGE, SLEEP_TIME);
}
I don t know at this time how to add Arduino library like DHT.h, but i have not tryed.
I have a question, someone know how to switch GPIO intput to GPIO.PUD_UP (pullup) ?