

Just want to say: Thanks for all the hard work.
Moderator: leecollings
Code: Select all
#
# idVendor 0x1a86 QinHeng Electronics
# idProduct 0x7523 HL-340 USB-Serial adapter
#
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="ttyUSB31", MODE="0666", SYMLINK+="mysensors"
#
# Tests:
# udevadm info --query=all --name ttyUSB0
# udevadm test $(udevadm info --query path --name ttyUSB0 )
#
Code: Select all
0;0;3;0;9;read: 3-3-0 s=2,c=1,t=23,pt=3,l=2:3494
3;2;1;0;23;3494
You just have to comment MySensorBase.cpp line 829 until 831 change to this and makertenklooster wrote:Have added a lux sensor. It's working if the value is < 1000
If the value is greater then 1000 it's displayed as 1000.
This is a copy of the serial gateway output.Another issue is all mysensors values are (mostly) listed under utilitys.Code: Select all
0;0;3;0;9;read: 3-3-0 s=2,c=1,t=23,pt=3,l=2:3494 3;2;1;0;23;3494
A barometer isn't listed under weather, while a mysensors temperature is listed under temperature.
Code: Select all
case V_LIGHT_LEVEL:
pSensor->floatValue = (float)atof(payload.c_str());
//convert percentage to 1000 scale
/*
pSensor->floatValue = (1000.0f / 100.0f)*pSensor->floatValue;
if (pSensor->floatValue > 1000.0f)
pSensor->floatValue = 1000.0f;
*/
bHaveValue = true;
break;
another issue, Domoticz doesn't create device for relayactuator. it's only create device for relaywithbuttonactuator skecth. I think because RelayActuator only send sketch once while domoticz will add device after few reading.gizmocuz wrote:Will be fixed in next beta
Thanks, it did the trick!rachmat wrote: You just have to comment MySensorBase.cpp line 829 until 831 change to this and make![]()
Thanks for letting me know.hansrune wrote:Mine has battery levels reported as sent (svn revision 2252)
Code: Select all
gw.sendBatteryLevel(batteryPcnt);
Code: Select all
2015-02-08 21:06:38 MySensors: Node: 33, Sketch Name: DimmableLED
2015-02-08 21:06:38 MySensors: Node: 33, Sketch Version: 1.1
2015-02-08 21:06:52 MySensors: Node: 33, Sketch Name: DimmableLED
2015-02-08 21:06:52 MySensors: Node: 33, Sketch Version: 1.1
2015-02-08 21:07:00 Hardware Monitor: Fetching data (System sensors)
2015-02-08 21:07:30 Hardware Monitor: Fetching data (System sensors)
If possible could you keep talking in mySensors terms ?rtenklooster wrote:Thanks for letting me know.hansrune wrote:Mine has battery levels reported as sent (svn revision 2252)
i've checked my code and it appears i used a sketch witch reported the battery level as a custom variable instead ofUpdated my sketch and it's working fine now! ThanksCode: Select all
gw.sendBatteryLevel(batteryPcnt);
Update: another small issue:
The only unit reporting battery states, is unit 4.
The battery percentage of unit 1 is also updated with unit 4's percentage.
It would be nice to be able to set notifications when a bettery level drops below xx, and show a graph of the battery level.
Most sensors are implemented, but i could not test them all.BluesBro wrote:Is there a list of Domoticz supported devices or is every device on http://www.mysensors.org/build/ list supported?
Nice work!!gizmocuz wrote:Most sensors are implemented, but i could not test them all.
If you find a problem, let me know
Basically it just 3 sub dimmer, then the controller will manipulate it. I tried with openhab and it works just fine with rgb color picker/slider. here is openhab rules and items https://github.com/openhab/openhab/wiki ... led-stripepj-r wrote:Nice work!!gizmocuz wrote:Most sensors are implemented, but i could not test them all.
If you find a problem, let me know
I did already order hw for mysensors controlling venetian blinds tilt angle with servo actuator![]()
A small question:
Does anyone know if there Is any good or what is the best concept of making rgb controller with arduino and mysensors? Or will it currently be just 3 sub-dimmers?
All I found from the wonderland of internet was these:
http://forum.mysensors.org/topic/816/se ... sensors/17
http://forum.pidome.org/viewtopic.php?id=58
Code: Select all
#define SN "RGB DIMMER"
#define SV "1.1"
#include <MySensor.h>
#include <SPI.h>
#include <MyConfig.h>
#define RED_PIN 3 // Arduino pin attached to MOSFET Gate pin
#define GREEN_PIN 5
#define BLUE_PIN 6
MySensor gw(9,10);
void setup()
{
Serial.println( SN );
gw.begin(incomingMessage, 31, true);
gw.sendSketchInfo(SN, SV);
gw.present(RED_PIN, S_DIMMER);
gw.present(GREEN_PIN, S_DIMMER);
gw.present(BLUE_PIN, S_DIMMER);
pinMode(RED_PIN, OUTPUT);
pinMode(GREEN_PIN, OUTPUT);
pinMode(BLUE_PIN, OUTPUT);
analogWrite(RED_PIN, 255 * gw.loadState(RED_PIN) / 100); //Get value from RAM and write to output
analogWrite(GREEN_PIN, 255 * gw.loadState(GREEN_PIN) / 100);
analogWrite(BLUE_PIN, 255 * gw.loadState(BLUE_PIN) / 100);
// Pull the gateway's current dim level - restore light level upon sendor node power-up
/*
gw.request(RED_PIN, V_DIMMER );
gw.request(GREEN_PIN, V_DIMMER );
gw.request(BLUE_PIN, V_DIMMER );
*/
}
void loop()
{
gw.process();
}
void incomingMessage(const MyMessage &message) {
if (message.type == V_DIMMER)
{
uint8_t incomingDimmerStatus = message.getByte();
// Change Dimmer level
analogWrite(message.sensor, 255 * incomingDimmerStatus / 100);
gw.saveState(message.sensor, message.getByte()); //Save value to RAM
// Write some debug info
//Serial.print("Incoming change for dimmer on pin:");
//Serial.print(message.header.childId);
//Serial.print(", New status: ");
//Serial.println(incomingDimmerStatus);
}
}
Users browsing this forum: No registered users and 0 guests