and another yes:
from the history:
Changed: MySensors, now treating V_LIGHT_LEVEL as Perecentage (V_LEVEL with type=S_LIGHT_LEVEL = Lux)
regards,
Frank
and another yes:
from the history:
Changed: MySensors, now treating V_LIGHT_LEVEL as Perecentage (V_LEVEL with type=S_LIGHT_LEVEL = Lux)
regards,
Frank
Came across this link http://domoticx.com/p1-poort-slimme-meter-data-naar-domoticz-esp8266/ it uses the SoftwareSerial library (not the one provided with Arduino !!)
and yes it can invert the P1 signals. Unfortunately it uses ESP8266 to send data to Domoticz.
I will see if I can convert the sketch to mysensors.
Frank
Thanks guys, As I now understand from BartE the decoding must be first done by the Arduino RS232 hardware. In my opinion I would 'just' receive the inverted bits (via Arduino RS232 Hardware) and invert them later. But I guess that's not the way to do it.
On the other hand the sketch used in the above link uses the AltSoftSerial library, so the suggestion made by tbowmo might be an option.
Regards
Frank
Hello,
Above post was rather old, so the reply option suggested I create a new topic in reference.
As of october 3th 2017 2 smartmeters are installed, gas (Honeywell BK GYEteB) and electricity (XS 210 ESMR5).
As a domotic enthousiast of course I want to monitor the output. I prefer Mysensors with Domoticz. So I looked around and found the solution in the topic above. But almost every solution mention a hardware component to invert the signal, 1 -> 0, 0 -> 1. Why is there not a software solution ? A simple XOR would suffice I think?????
Can somebody tell me what the pitfall is...
Thanks
Frank
Thank for the reply,
I found this online: https://github.com/domoticz/domoticz/issues/1396
march 23, 2017
the short version is:
gizmocuz commented on 25 Mar
Could be around the switch case 492, i am only handling the heartbeat for the following value types:
case V_TRIPPED:
case V_ARMED:
case V_LOCK_STATUS:
case V_STATUS:
case V_PERCENTAGE:
case V_SCENE_ON:
case V_SCENE_OFF:
case V_UP:
case V_DOWN:
case V_STOP:
case V_RGB:
case V_RGBW:
Maybe we miss some... it could be a complicated issue to support all types, as for all types we should recover the IDX in the database, or we should remember this...
End
I checked the Domoticz source files and still no change (11 sep 2017) so no heartbeat with v_values.
Regards
Frank
Hello Boots33,
I flashed your sketch in an Arduino pro mini, it is registering but "both" sensors did not show in Domoticz. I had to trigger them (send a msg with values) after that Domoticz showed them both. The heartbeat is working from the mysensors point of view, confirmation from the Arduino monitor and a led flashing on the pro mini (I activated the err, tx, rx option) but Domoticz won't register the heartbeat, can you confirm that?
Regards
Frank
Thanks for the confirmation, also an idea why it may not work ?
I followed the connections and added the code.. ?!
regards
Frank
Hello,
On the Advanced Gateway Options page it says that you can add radio traffic leds.
I read somewhere(?) that it is for the gateway and sensors but no mention of the repeater.
but my question, I'm in the process of hooking up a repeater, which works great by the way,
except for the traffic leds. Is it possible to add radio traffic leds to the repeater ?
here is the code part I copied from the Advanced Gateway Options page and added to the repeaternote.ino sketch. And of course made sure to follow the connection instructions.
Even reversed the whole so the leds stay on and should go off in case of transmission or error but neither versions work.
// Enable debug prints to serial monitor
#define MY_DEBUG
// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69
// Enabled repeater feature for this node
#define MY_REPEATER_FEATURE
// Flash leds on rx/tx/err
#define MY_LEDS_BLINKING_FEATURE
// Set blinking period (in milliseconds)
#define MY_DEFAULT_LED_BLINK_PERIOD 300
#define MY_DEFAULT_ERR_LED_PIN 4
#define MY_DEFAULT_TX_LED_PIN 5
#define MY_DEFAULT_RX_LED_PIN 6
#include <SPI.h>
#include <MySensors.h>
etc.
If someone can acknowledge the possibility of adding leds to the repeater i would be grateful. If yes why don't they work ?
Regards
Frank