NM, used GPIO numbers instead of Pin numbers RTFM
Best posts made by Richard van der Plas
-
RE: 💬 Building a Raspberry Pi Gateway
-
RE: MySensors Gatway dimmers & Home assistant
@martinhjelmare ok ill wait,
meanwhile splitted the Message.type== V_LIGHT & == V_DIMMER into 2 different ifs.
created a quick serial.println on the vlight, and see in my HASS that indeed changing the dim level on the led when off , triggers a v_light and turns it to 100%
-Update indeed when removing the V_LIGHT message type behaviour is okay, but im unable to turn off the light- Following code is now testing:
if ((message.type == V_LIGHT) && message.sensor==1) { int requestedLevel = atoi( message.data ); Serial.print("message:"); Serial.println(requestedLevel); Serial.print("VLIGHT DETECTET set to:"); requestedLevel *= ( message.type == V_LIGHT ? 100 : 1 ); Serial.println(requestedLevel); if (requestedLevel <1) {fadeWhiteToLevel( requestedLevel );} }
Behaviour is better now
only issue i now have is the 255 values of arduino to the 100 of HASS , -
RE: New CHILD ID after reprogramming
@gohan said in New CHILD ID after reprogramming:
#define MY_NODE_ID 5
aha MY_NODE_ID, instead of CHILD_ID
-
RE: Buy big amount of Arduino nano with FTDI
ive good good experience with the BAITE online store, fast shipping and offering a price by 10
-
RE: New Sensor node doesn't show up in HA
damn i think i found the issue, the presentation uses V_TRIPPED, that should be S_MOTION or S_DOOR, gonna try that tommorrow
update 21-11, it indeed was the V_TRIPPED vs S_DOOR. -
RE: 💬 Building a WiFi Gateway using ESP8266
seems to work again indeed, had to flash something empty first.
-
RE: Home assistant triggers a mysensor light, nothing happens
@martinhjelmare changed the antennas again for another design, and send the level to max, and today it seems to be stable.
Proof is in the pudding, he needs to control my aqarium lights twice a day. that's the one thats missing.
al my sensors are power with power regulators, so that should be good.
if the issue is persisent, i will try further.