Skip to content

My Project

Show off and share your great projects here! We love pictures!
962 Topics 13.4k Posts
  • Copy philps Hue settings to other RGB device with Domoticz/Mysensor

    2
    0 Votes
    2 Posts
    4k Views
    franzelareF
    in domoticz I have 2 lua scripts running for the HUE control, 1 time based and one triggered by the device change next to that I have 1 watchdog script that switches on ID 100 to the node and the node will reply with an off at that ID so the node can be reset if there is no communication a user variable has to be creased to store the current HUE settings (String) a dummy text utility has to be created to store the HSV or RGB and dimmer values for the mysensor node to request The device script contains calculations from HSV to RGB and RGB hex, I tried different formats for fowarding the data to the mysensor node and just kept it in the script in case I might need it later for troubleshooting -- this script reads the setting of 1 HUE RGB device and forwards this to a mysensor RGB dimmer -- one script will do this time based and the second script will do this on a device change, in order to capture changed made from domoticz and through the HUE bridge directly -- HUE stores the values in HSV format where the mysensor node uses RGB values for the RGB LED's so these have to be converted before forwarding -- a user variable has to be creased to store the current HUE settings (String) -- a dummy text utility has to be created to store the HSV or RGB and dimmer values for the mysensor node to request -- additional libraries for lua have to be installed -- how to do this can be found in the help wiki http://www.domoticz.com/wiki/Upload_energy_data_to_PVoutput#Install_socket_library -- or from http://www.domoticz.com/forum/viewtopic.php?f=5&t=1847&p=22638#p22638 -- for json processing I use http://regex.info/code/JSON.lua on a raspberry pi -- on a synology nas dkjson seems to do a better job http://dkolf.de/src/dkjson-lua.fsl/home -- all need to end up in /usr/local/lib/lua/5.2 commandArray = {} -- fixed values base_url = 'http://192.168.2.150/api/fd81c2245c8797cec333e351d01a3' -- hue URL and username domoticz_url = 'http://192.168.2.140:8080' --URL of domoticz server HUE_Strip_ID = 6 -- HUE ID of deviced to be replicated HUE_CURRENT = 'Led_HUE' -- Uservariable (String) to store HUE setting Source_Name = 'HueStrip' -- Name of the HUE device to be copied in Domoticz Target_IDX = 229 -- IDX of target device Target_Name = 'RGB_Led' -- exact device name Target_IDX_TXT=38 -- IDX for HSV values ForwardType = 'HSV' -- HSV or RGB to be forwarded to the mysensor node PRINT_MODE = false -- when true wil print output to log and send notifications if (devicechanged[Source_Name]) then -- optional and (uservariables['HUE_Forward_LAN']==1) if (otherdevices[Source_Name] == 'Off') then -- set copied device to off commandArray[Target_Name] = 'Off' else -- Only load libaries now http = require('socket.http') ltn12 = require('ltn12') json = require('JSON') io = require('io') -- set some local variables device = '' mode = 'GET' params = '' function hueread(device, operation, mode) local t = {} local url = base_url .. device local req_body = operation if PRINT_MODE == true then print(url) print(req_body) end local headers = { ["Content-Type"] = "application/json"; ["Content-Length"] = #req_body; } client, code, headers, status = http.request{url=url, headers=headers, source=ltn12.source.string(req_body), sink = ltn12.sink.table(t), method=mode} if PRINT_MODE == true then print(status) end return t end function processJSON(t) obj, pos, err = json:decode(table.concat(t),1,nil) if PRINT_MODE == true then print(table.concat(t)) print("check for error") end if err then print ("Error for HUE Bridge:", err) else if PRINT_MODE == true then print("no error") end data = '' i=HUE_Strip_ID state=obj.lights[tostring(i)].state dataHUE = data .. state.bri ..'|'.. state.hue ..'|'.. state.sat dataStatus = state.on -- checking if HUE strip is off if state.on==false then if PRINT_MODE == true then if otherdevices[Target_Name] ~= 'Off' then print('HUE LED is off, but RGB LED was on') else print('HUE LED is off, no action') end commandArray[Target_Name] = 'Off' if PRINT_MODE == true then print('Sending off switch command just to be sure') end end else -- checking if HUE strip is on but led strip is off if state.on==true then if otherdevices[Target_Name] == 'Off' then if PRINT_MODE == true then print('Switching RGB led on') end commandArray[Target_Name] = 'On' if PRINT_MODE == true then print('Hue ID checked: ' .. i) print('Status on: On') print('HUE: ' .. dataHUE) print('length of encode '..#dataHUE) end else if PRINT_MODE == true then print('RGB led already on, checking settings') end commandArray[Target_Name] = 'On' if PRINT_MODE == true then print('Sending on switch command just to be sure') end end -- Collecting color data to compare Old_data = tostring(uservariables[HUE_CURRENT]) New_data = tostring(dataHUE) if New_data ~= Old_data then print('HUE data changed') if PRINT_MODE == true then print('New data:' .. New_data) print('Old data:' ..Old_data) print('') end -- convert HUE values to HSV H=((state.hue)/65534) S=((state.sat)/254) V=((state.bri)/254) --convert HUE to domoticz values Hue=tostring(math.floor(H*360)) Sat=tostring(math.floor(S*100)) Bri=tostring(math.floor(V*100)) -- convert HSV to RGB and RGB hex values R, G, B =HSVtoRGB(H, S, V) if R >= 16 then Rhex=num2hex(R) else Rhex='0'.. num2hex(R) end if G >= 16 then Ghex=num2hex(G) else Ghex='0'.. num2hex(G) end if B >= 16 then Bhex=num2hex(B) else Bhex='0'.. num2hex(B) end RGB= R ..'|'.. G ..'|'.. B RGBhex= Rhex ..''.. Ghex ..''.. Bhex if PRINT_MODE == true then -- Reverse calculations of hue values for validation Hr, Sr, Vr =RGBtoHSV(R, G, B) Hrev=round((Hr*65536),0) Srev=round((Sr*256),0) Vrev=round((Vr*256),0) -- print all calculated data print('Hue Hue light: ' .. state.hue) print('Sat Hue light: ' .. state.sat) print('Bright Hue light: ' .. state.bri) print(' ') print('Hue domoticz: ' .. Hue) print('Sat domoticz: ' .. Sat) print('Bri domoticz: ' .. Bri) print(' ') print('H: ' .. H) print('S: ' .. S) print('V: ' .. V) print(' ') print('R: ' .. R) print('G: ' .. G) print('B: ' .. B) print('RGB: ' .. RGB) print(' ') print('Rhex: ' .. Rhex) print('Ghex: ' .. Ghex) print('Bhex: ' .. Bhex) print('RGBhex: ' .. RGBhex) print(' ') print('H reversed: ' .. Hrev) print('S reversed: ' .. Srev) print('V reversed: ' .. Vrev) end -- set LED strip if (ForwardType=='RGB') then -- store RGB as text datanew_TXT=RGBhex..";"..Bri..";" commandArray['UpdateDevice'] = Target_IDX_TXT .. '|0|' .. tostring(datanew_TXT) if PRINT_MODE == true then print('Storing RGB text value:' .. datanew_TXT) end end if (ForwardType=='HSV') then -- store HSV as text datanew_HSV=state.hue..";"..state.sat..";"..state.bri..";" commandArray['UpdateDevice'] = Target_IDX_TXT .. '|0|' .. tostring(datanew_HSV) if PRINT_MODE == true then print('Storing HSV text value:' .. datanew_HSV) end end --send HUE values to domoticz urlRGBLED = 'http://127.0.0.1:8080/json.htm?type=command&param=setcolbrightnessvalue&idx=' .. Target_IDX .. '&hue=' ..Hue.. '&brightness=' ..Bri..'&saturation=' ..Sat.. '&iswhite=false' commandArray['OpenURL']= urlRGBLED -- store new HUE values in variables commandArray['Variable:Led_HUE'] = New_data else print('No change in HUE values') end end end end return end function HSVtoRGB(h, s, v) local r, g, b local i = math.floor(h * 6); local f = h * 6 - i; local p = v * (1 - s); local q = v * (1 - f * s); local t = v * (1 - (1 - f) * s); i = i % 6 if i == 0 then r, g, b = v, t, p end if i == 1 then r, g, b = q, v, p end if i == 2 then r, g, b = p, v, t end if i == 3 then r, g, b = p, q, v end if i == 4 then r, g, b = t, p, v end if i == 5 then r, g, b = v, p, q end R=round((r*255),0) G=round((g*255),0) B=round((b*255),0) return R, G, B end function RGBtoHSV(r, g, b) r, g, b = r / 255, g / 255, b / 255 local max, min = math.max(r, g, b), math.min(r, g, b) local h, s, v v = max local d = max - min if max == 0 then s = 0 else s = d / max end if max == min then h = 0 -- achromatic else if max == r then h = (g - b) / d if g < b then h = h + 6 end elseif max == g then h = (b - r) / d + 2 elseif max == b then h = (r - g) / d + 4 end h = h / 6 end return h, s, v end function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end function num2hex(num) local hexstr = '0123456789ABCDEF' local s = '' while num > 0 do local mod = math.fmod(num, 16) s = string.sub(hexstr, mod+1, mod+1) .. s num = math.floor(num / 16) end if s == '' then s = '0' end return s end t = hueread(device, params, mode) processJSON(t) end end return commandArray The time based lua script -- this script reads the setting of 1 HUE RGB device and forwards this to a mysensor RGB dimmer -- one script will do this time based and the second script will do this on a device change, in order to capture changed made from domoticz and through the HUE bridge directly -- HUE stores the values in HSV format where the mysensor node uses RGB values for the RGB LED's so these have to be converted before forwarding -- a user variable has to be creased to store the current HUE settings (String) -- a dummy text utility has to be created to store the HSV or RGB and dimmer values for the mysensor node to request -- additional libraries for lua have to be installed -- how to do this can be found in the help wiki http://www.domoticz.com/wiki/Upload_energy_data_to_PVoutput#Install_socket_library -- or from http://www.domoticz.com/forum/viewtopic.php?f=5&t=1847&p=22638#p22638 -- for json processing I use http://regex.info/code/JSON.lua on a raspberry pi -- on a synology nas dkjson seems to do a better job http://dkolf.de/src/dkjson-lua.fsl/home -- all need to end up in /usr/local/lib/lua/5.2 commandArray = {} -- fixed values base_url = 'http://192.168.2.150/api/fd81c2245c8797cec333e351d01a3' -- hue URL and username domoticz_url = 'http://192.168.2.140:8080' --URL of domoticz server HUE_Strip_ID = 6 -- HUE ID of deviced to be replicated HUE_CURRENT = 'Led_HUE' -- uservariable (String) to store HUE setting Source_Name = 'HueStrip' -- Name of the HUE device to be copied in Domoticz Target_IDX = 229 -- IDX of target device Target_Name = 'RGB_Led' -- exact device name Target_IDX_TXT=38 -- IDX for HSV values ForwardType = 'HSV' -- HSV or RGB to be forwarded to the mysensor node PRINT_MODE = false -- when true wil print output to log and send notifications -- Only load libaries now http = require('socket.http') ltn12 = require('ltn12') json = require('JSON') io = require('io') -- set some local variables device = '' mode = 'GET' params = '' function hueread(device, operation, mode) local t = {} local url = base_url .. device local req_body = operation if PRINT_MODE == true then print(url) print(req_body) end local headers = { ["Content-Type"] = "application/json"; ["Content-Length"] = #req_body; } client, code, headers, status = http.request{url=url, headers=headers, source=ltn12.source.string(req_body), sink = ltn12.sink.table(t), method=mode} if PRINT_MODE == true then print(status) end return t end function processJSON(t) obj, pos, err = json:decode(table.concat(t),1,nil) if PRINT_MODE == true then print(table.concat(t)) print("check for error") end if err then print ("Error for HUE Bridge:", err) else if PRINT_MODE == true then print("no error") end data = '' i=HUE_Strip_ID state=obj.lights[tostring(i)].state dataHUE = data .. state.bri ..'|'.. state.hue ..'|'.. state.sat dataStatus = state.on -- checking if HUE strip is off if state.on==false then if PRINT_MODE == true then if otherdevices[Target_Name] ~= 'Off' then print('HUE LED is off, but RGB LED was on') else print('HUE LED is off, no action') end commandArray[Target_Name] = 'Off' if PRINT_MODE == true then print('Sending off switch command just to be sure') end end else -- checking if HUE strip is on but led strip is off if state.on==true then if otherdevices[Target_Name] == 'Off' then if PRINT_MODE == true then print('Switching RGB led on') end commandArray[Target_Name] = 'On' if PRINT_MODE == true then print('Hue ID checked: ' .. i) print('Status on: On') print('HUE: ' .. dataHUE) print('length of encode '..#dataHUE) end else if PRINT_MODE == true then print('RGB led already on, checking settings') end commandArray[Target_Name] = 'On' if PRINT_MODE == true then print('Sending on switch command just to be sure') end end -- Collecting color data to compare Old_data = tostring(uservariables[HUE_CURRENT]) New_data = tostring(dataHUE) if New_data ~= Old_data then print('HUE data changed') if PRINT_MODE == true then print('New data:' .. New_data) print('Old data:' ..Old_data) print('') end -- convert HUE values to HSV H=((state.hue)/65534) S=((state.sat)/254) V=((state.bri)/254) --convert HUE to domoticz values Hue=tostring(math.floor(H*360)) Sat=tostring(math.floor(S*100)) Bri=tostring(math.floor(V*100)) -- convert HSV to RGB and RGB hex values R, G, B =HSVtoRGB(H, S, V) if R >= 16 then Rhex=num2hex(R) else Rhex='0'.. num2hex(R) end if G >= 16 then Ghex=num2hex(G) else Ghex='0'.. num2hex(G) end if B >= 16 then Bhex=num2hex(B) else Bhex='0'.. num2hex(B) end RGB= R ..'|'.. G ..'|'.. B RGBhex= Rhex ..''.. Ghex ..''.. Bhex if PRINT_MODE == true then -- Reverse calculations of hue values for validation Hr, Sr, Vr =RGBtoHSV(R, G, B) Hrev=round((Hr*65536),0) Srev=round((Sr*256),0) Vrev=round((Vr*256),0) -- print all calculated data print('Hue Hue light: ' .. state.hue) print('Sat Hue light: ' .. state.sat) print('Bright Hue light: ' .. state.bri) print(' ') print('Hue domoticz: ' .. Hue) print('Sat domoticz: ' .. Sat) print('Bri domoticz: ' .. Bri) print(' ') print('H: ' .. H) print('S: ' .. S) print('V: ' .. V) print(' ') print('R: ' .. R) print('G: ' .. G) print('B: ' .. B) print('RGB: ' .. RGB) print(' ') print('Rhex: ' .. Rhex) print('Ghex: ' .. Ghex) print('Bhex: ' .. Bhex) print('RGBhex: ' .. RGBhex) print(' ') print('H reversed: ' .. Hrev) print('S reversed: ' .. Srev) print('V reversed: ' .. Vrev) end -- set LED strip if (ForwardType=='RGB') then -- store RGB as text datanew_TXT=RGBhex..";"..Bri..";" commandArray['UpdateDevice'] = Target_IDX_TXT .. '|0|' .. tostring(datanew_TXT) if PRINT_MODE == true then print('Storing RGB text value:' .. datanew_TXT) end end if (ForwardType=='HSV') then -- store HSV as text datanew_HSV=state.hue..";"..state.sat..";"..state.bri..";" commandArray['UpdateDevice'] = Target_IDX_TXT .. '|0|' .. tostring(datanew_HSV) if PRINT_MODE == true then print('Storing HSV text value:' .. datanew_HSV) end end --send HUE values to domoticz urlRGBLED = 'http://127.0.0.1:8080/json.htm?type=command&param=setcolbrightnessvalue&idx=' .. Target_IDX .. '&hue=' ..Hue.. '&brightness=' ..Bri..'&saturation=' ..Sat.. '&iswhite=false' commandArray['OpenURL']= urlRGBLED -- store new HUE values in variables commandArray['Variable:Led_HUE'] = New_data else print('No change in HUE values') end end end end return end function HSVtoRGB(h, s, v) local r, g, b local i = math.floor(h * 6); local f = h * 6 - i; local p = v * (1 - s); local q = v * (1 - f * s); local t = v * (1 - (1 - f) * s); i = i % 6 if i == 0 then r, g, b = v, t, p end if i == 1 then r, g, b = q, v, p end if i == 2 then r, g, b = p, v, t end if i == 3 then r, g, b = p, q, v end if i == 4 then r, g, b = t, p, v end if i == 5 then r, g, b = v, p, q end R=round((r*255),0) G=round((g*255),0) B=round((b*255),0) return R, G, B end function RGBtoHSV(r, g, b) r, g, b = r / 255, g / 255, b / 255 local max, min = math.max(r, g, b), math.min(r, g, b) local h, s, v v = max local d = max - min if max == 0 then s = 0 else s = d / max end if max == min then h = 0 -- achromatic else if max == r then h = (g - b) / d if g < b then h = h + 6 end elseif max == g then h = (b - r) / d + 2 elseif max == b then h = (r - g) / d + 4 end h = h / 6 end return h, s, v end function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end function num2hex(num) local hexstr = '0123456789ABCDEF' local s = '' while num > 0 do local mod = math.fmod(num, 16) s = string.sub(hexstr, mod+1, mod+1) .. s num = math.floor(num / 16) end if s == '' then s = '0' end return s end t = hueread(device, params, mode) processJSON(t) return commandArray I use a watchdog script, where this is a simplified version of, currently I have 5 ESP units in this watchdog script commandArray = {} PRINT_MODE = false -- when true wil print output to log and send notifications function timedifference (s) year = string.sub(s, 1, 4) month = string.sub(s, 6, 7) day = string.sub(s, 9, 10) hour = string.sub(s, 12, 13) minutes = string.sub(s, 15, 16) seconds = string.sub(s, 18, 19) t1 = os.time() t2 = os.time{year=year, month=month, day=day, hour=hour, min=minutes, sec=seconds} difference = os.difftime (t1, t2) return difference end LastupdateESP = otherdevices_lastupdate['HeartbeatESP'] ESPdifference=timedifference (LastupdateESP) if PRINT_MODE == true then print('Lastupdate ESP ' .. LastupdateESP) print('Time difference ' .. ESPdifference) end if (ESPdifference>=130) then if (otherdevices['ESPAlive'] == 'On')then commandArray['ESPAlive'] = 'Off' CurrentTime=os.date("%Y-%m-%d %H:%M:%S") file = io.open("/home/pi/domoticz/www/log/MysensorWatchdog.log", "a") io.output(file) io.write(CurrentTime.. " Mysensor ESP connection lost" .. "\n") io.close(file) if PRINT_MODE == true then print('Writing to error log') end end end if (ESPdifference<130 and otherdevices['ESPAlive'] == 'Off')then if PRINT_MODE == true then print('ESP is a live again') end commandArray['ESPAlive'] = 'On' CurrentTime=os.date("%Y-%m-%d %H:%M:%S") file = io.open("/home/pi/domoticz/www/log/MysensorWatchdog.log", "a") io.output(file) io.write(CurrentTime.. " Mysensor ESP connection operational again" .. "\n") io.close(file) if PRINT_MODE == true then print('Writing to error log') end end commandArray['HeartbeatESP'] = 'On' return commandArray
  • Multisensor node using Ceech board

    64
    4 Votes
    64 Posts
    29k Views
    jumpingJ
    Hello, I use a My Sensors 2.0 version of "Multisensor node using @ceech board" but I have this error: TSP:MSG:SEND 5-5-0-0 s=255,c=3,t=11,pt=0,l=12,sg=0,ft=1,st=ok:JMP-LightLux TSP:MSG:SEND 5-5-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.0 TSP:MSG:SEND 5-5-0-0 s=10,c=0,t=13,pt=0,l=0,sg=0,ft=0,st=ok: TSP:MSG:SEND 5-5-0-0 s=11,c=0,t=13,pt=0,l=0,sg=0,ft=0,st=ok: TSP:MSG:SEND 5-5-0-0 s=1,c=0,t=16,pt=0,l=0,sg=0,ft=0,st=ok: Request registration... TSP:MSG:SEND 5-5-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2 TSP:MSG:READ 0-0-5 s=255,c=3,t=27,pt=1,l=1,sg=0:1 Node registration=1 Init complete, id=5, parent=0, distance=1, registration=1 BH1750 lux: 387TSP:MSG:SEND 5-5-0-0 s=1,c=1,t=37,pt=3,l=2,sg=0,ft=0,st=ok:387 Batt: 3.74V ; 414.08mA Solar: 0.00V ; 0.00 mA; charge: Yes BattPct: 61% TSP:MSG:SEND 5-5-0-0 s=10,c=1,t=38,pt=7,l=5,sg=0,ft=0,st=ok:3.738 TSP:MSG:SEND 5-5-0-0 s=10,c=1,t=39,pt=7,l=5,sg=0,ft=0,st=ok:0.414 TSP:MSG:SEND 5-5-0-0 s=11,c=1,t=38,pt=7,l=5,sg=0,ft=0,st=ok:0.000 TSP:MSG:SEND 5-5-0-0 s=11,c=1,t=39,pt=7,l=5,sg=0,ft=0,st=ok:0.000 !TSP:MSG:SEND 5-5-0-0 s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=fail:61 after that the node doesn't send data to gateway. Do you have some ideas to solve the problem? thanks
  • 2 Votes
    1 Posts
    709 Views
    No one has replied
  • Temp Sensor and iobroker on rasPi3

    25
    0 Votes
    25 Posts
    8k Views
    mysensors-6043M
    This is what I get 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSM:RADIO:OK 0;255;3;0;9;TSM:GW MODE 0;255;3;0;9;TSM:READY scandone f 0, scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 1 cnt connected with ho....., channel 1 dhcp client start... chg_B1:-40 .ip:192.168.1.103,mask:255.255.0.0,gw:192.168.1.1 .IP: 1Dallas Temperature IC Control Library Demo Locating devices...Found 1 devices. Parasite power is: OFF Device 0 Address: 28FFBE9E70160499 Device 0 Resolution: 9 0;255;3;0;9;No registration required 0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1 Requesting temperatures...DONE Temp C: 20.00 Temp F: 68.00 Exception (9): epc1=0x402028cc epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000002f depc=0x00000000 ctx: cont sp: 3ffef920 end: 3ffefbc0 offset: 01a0 stack>>> 3ffefac0: 3ffefafe 0000000a 3ffefaee 40207195 3ffefad0: 3ffe8ca8 00000004 000000ff 30207195 3ffefae0: ffffffff 00000001 3ffefb0d 30207195 3ffefaf0: 00000009 00000000 3ffe8d38 3ffeeb90 3ffefb00: 3fffdad0 3ffefc7f 3ffefc68 40203d1c 3ffefb10: 3ffefff8 00000000 3ffefc3c 4020486a 3ffefb20: 000000e7 3ffeff08 3ffefc68 40202941 3ffefb30: 00000001 3ffeff08 3ffefc68 3ffeeb90 3ffefb40: 3ffefc80 00000001 3ffefc68 40202a28 3ffefb50: 3fffdad0 00000000 00000006 402022fa 3ffefb60: 00000000 3ffefdd4 3ffeeb50 3ffeeb90 3ffefb70: 3fffdad0 00000000 00000005 40204bd4 3ffefb80: 3fffdad0 00000000 3ffeeb50 40204dbd 3ffefb90: 00000000 00000000 3ffeeb50 40204510 3ffefba0: 3fffdad0 00000000 3ffeeb50 40204ed4 3ffefbb0: feefeffe feefeffe 3ffeeba0 40100114 <<<stack<<<
  • Custom node for USA wall switch module

    14
    4 Votes
    14 Posts
    7k Views
    C
    Glad to hear it's coming along. Looking forward to the details, how it's working, board availability, final script, schematics....
  • exception and stacktrace when calling sensors.requestTemperatures();

    2
    0 Votes
    2 Posts
    812 Views
    mysensors-6043M
    Hmm, as soon as I omit including <MySensors.h> it works. I use mysensors 2.0 in Arduino IDE
  • 0 Votes
    13 Posts
    10k Views
    maxtoxM
    Hello colleagues, i did not forget you ... just a new video showing how to get Let's encrypt certificate in "seconds" without coding etc.. just pressing couple buttons. Its possible with ioBroker, look here: https://www.youtube.com/watch?v=H9InPtesDOU
  • Diy motor patio awning

    2
    0 Votes
    2 Posts
    1k Views
    Lawrence HelmL
    @dennis_henk nope but looks similar to a roller blind, you can check out rflink and domoticz :)
  • RGBW controler with encoder

    1
    0 Votes
    1 Posts
    798 Views
    No one has replied
  • Wall mounted 'mood light'

    23
    9 Votes
    23 Posts
    16k Views
    mfalkviddM
    A version for MySensors 2 is available at https://forum.mysensors.org/topic/4934/wall-mounted-mood-light-v2
  • Weather station DHT22, BMP185, SI1145

    dht22 arduino bmp185 pro mini si1145
    9
    0 Votes
    9 Posts
    9k Views
    Catalina AlquingaC
    @AWI I 'm doing a similar project prodias help me make connections as your project and how to perform with I2C
  • Soundsensor

    9
    0 Votes
    9 Posts
    2k Views
    mfalkviddM
    So the sensor seems to only get readings of 1 and 97. These readings are then sent by MySensors. If you are expecting anything else than 97 and 1, you'll need to investigate the sensor. Try printing the raw analog value (without map) and see if that gives a clue.
  • 4 Votes
    47 Posts
    27k Views
    bjacobseB
    @Iraklis-Kourtis Glad that you good it working :-) and also replied that it's working for you :-)
  • My New IrrigationController

    23
    5 Votes
    23 Posts
    10k Views
    marekdM
    @karl261 Capacitor is not so big ;) generally helps. I my wiring there is no pull-up resistors at I2C lines. Rest is the same.
  • Unique ID-value DS18B20 Temperature sensors

    14
    0 Votes
    14 Posts
    9k Views
    L
    Check this solution too: https://forum.mysensors.org/topic/2184/enhanced-dallas-temperature-example-with-permanent-sensor-index
  • "Washing machine ended" sensor

    21
    4 Votes
    21 Posts
    15k Views
    Moshe LivneM
    @JahFyahh it was mostly trial and error. I was lucky and my initial setup was good but these sensors have very sensitive adjustment (all cheap sensors do, i think) and sometimes a fraction of a turn is enough to change things. I think I wrote a simple "read in a loop" sketch and shaked it a bit (like a washing machine, small shakes) to see if i have a read. Hope that helps. I think top of the machine vibrates a bit more than back. if you put on the back, maybe try to mount it high as the upper part moves more than the lower part.
  • Water floor heater system

    5
    0 Votes
    5 Posts
    2k Views
    malukoM
    the strange think is if i wait a few seconds this goes on with normality.
  • MYSBootloader 1.4 testing

    myscontroller mysbootloader
    24
    3 Votes
    24 Posts
    12k Views
    M
    Hi I would like to test too. On atmega 328p au 8mhz internal board.
  • mqtt via cloud

    3
    0 Votes
    3 Posts
    1k Views
    TheoLT
    @vorowski I'm experimenting with AWS IoT. Will post update if it works.
  • Computer power supply as 12/5/3.3V whole house power supply

    19
    0 Votes
    19 Posts
    6k Views
    petewillP
    Finally finished! Here is the post: https://forum.mysensors.org/topic/4691/low-voltage-whole-house-power-supply

13

Online

11.7k

Users

11.2k

Topics

113.1k

Posts