Closed meco489 closed 4 years ago
Could you be a bit more precise on what non-functional means? I'd assume you don't see it in Phoscon (which is kind of expected) and you don't have any power sensor and readings?
Happy to fiddle in the few lines to add it as supported device somewhere the next days.
@Smanar Legrand is you domain as I read ;)
Right .... I can't associate it in Phoscon ... Sorry: I took it for granted even if it wasn't! Thanks
@SwoopX , lol, yep, I can make this integration, all the code is already in place, will be fast.
@meco489 Can you take the same screenshoot but with consumption effective ? I ask that because for exemple on plug legrand use Voltage + Current + Power, but in reality only Power is working (other value stay at 0) The device is out of the box, or you already have updated it with bticino gateway ? (legrand electrical mesurement don't work without update) And if I make code modification, do you know how to compile it to test ?
Hi, when I made the screeshot that I sent you the BTicino module was connected .... I also saw that the active power was 0 .. but surely the reading was about 800W ??
P.S. On the BTicino APP it only displays the active power.
The device is updated with the latest firmware available. Is the compilation the same as described here? https://github.com/Smanar/deconz-rest-plugin/blob/master/README.md
But surely the reading was about 800W ??
So you can confirm me, at a moment you have a value at 0x050B attribute ?
And, yep, it's less or more this link, you have the official one at deconz github (it 's same than on my fork) https://github.com/dresden-elektronik/deconz-rest-plugin and you just need to change an url.
Give me an hour, I will give you a new link. I need to delete the previous one and remake one.
Ok done, so you can follow the procedure "Install deCONZ development package (optional, Linux only)"
But with using this command at step 1:
git clone https://github.com/Smanar/deconz-rest-plugin.git
I haven't compiled it yet, my production machine is busy, but the code is so easy, I don't think I have make error. https://github.com/Smanar/deconz-rest-plugin/commit/0dfab3ae5bea74bd0487d201eeca6f22aaee1d3e
I haven't found your device id (0x000d) So for the moment I imagined a new one "DIN power measurement" (will see later).
If I m right you will have only 1 device created, a sensor one, but use "add new light" in phoscon to add it.
PS: This code is using V2_05_73 of deconz APÏ (but I don't think you need to update your deconz version)
Super fast !!!
After following your instructions here is what I managed to do:
I have achieved the goal of integration with Home Assistant .... I am at your disposal to carry out further tests to improve the Plug-in.
Let me know what I can do for you!
Thanks so much!
Hi! I have a similiar case. I have a smart relay, which has alot of data shown in deconz, but only on/off switch in Phoscon. Can you help me get all features available to home assistant? I created another issue, https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2464 Looks like you know what to do, maybe you can help me? @Smanar
@espen4001 Don't worry @SwoopX did more integration than me ^^.
But your issue need same screenshoot than this one (at minimum basic cluster, to be sure we are on good device + cluster list + electrical maesurement cluster for create a device for it). And I think the JSON will be usefull too (as the device is already created)
@meco489 Yep, legrand is easy, all the code is already on place in deconz, so it's fast. And yes not all device can be show in Phoscon, but this app is closed source, so we can't do nothing for that. I will try to find what is the device type 0x000d, but If this device don't have more feature, I will PR the code as it. Thx too for adding a new device in legrand branch ^^, we have same device too here.
Don't worry, I got the Develco stuff covered, even without screenshots. The technical documentation is really good ;)
@meco489 Which deconz version are you currently running? If it's ok for you, could you update to .73? I'm curious to see if that 0x000d device ID thingy has been resolved. Made some additions in that regard for this particular version.
@SwoopX I'm stuck ....
marthoc/deconz Firmware Flashing Script Version: 0.5
Listing attached devices...
/usr/bin/GCFFlasher_internal.bin: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib/libwiringPi.so)
Enter the full device path, or press Enter now to exit.
Device Path : /dev/ttyAMA0
Firmware available for flashing:
deCONZ_ConBeeII_0x26490700.bin.GCF deCONZ_ConBeeII_0x264a0700.bin.GCF deCONZ_Rpi_0x26330500.bin.GCF
Enter the firmware file name from above, including extension, or press Enter now to exit.
File Name : /usr/share/deCONZ/firmware/deCONZ_Rpi_0x26330500.bin.GCF
Device: /dev/ttyAMA0
Firmware File: /usr/share/deCONZ/firmware/deCONZ_Rpi_0x26330500.bin.GCF
Are the above device and firmware values correct? Enter Y to proceed, any other entry to exit: y
Flashing...
/usr/bin/GCFFlasher_internal.bin: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib/libwiringPi.so)
Flashing Error! Please re-run this script...
... some idea?
Hm, I got no clue about the docker stuff... However, from what I can see from the screenshots, you're running a deconz version which is at least half a year old. Which version is it?
I've heard marthoc/deconz releases follow pretty quick after a new deconz release. Maybe on on .73 is already available? Hope there's also some guidance on migration.
I was a little behind ..... solved!
Device ID OK!
If it's okay for you at this point I would report it as closed ....
Sweet. I'd prefer to leave it open as I'd expect that the electrical measurement data is not available yet unless you haven't compiled my repo.
The only electrical measurement that displays the device, even with the original app, is the instantaneous active power .... I read it even earlier in Home Assistant. Have you changed anything?
The only electrical measurement that displays the device, even with the original app, is the instantaneous active power .... I read it even earlier in Home Assistant. Have you changed anything?
I basically copied Smanar's changes. So from one of your earlier posts, I'm not sure if you compiled and tried his version. Anyway, if you also get reasonable readings in HA, then perfect. Fine to close the request then.
Sorry maybe I was not exhaustive .... I compiled and tried the version of Smanar: the reading of the active power in HA was precise.
Thanks again for your work.
Hi all! @meco489 how did you manage to see Power readings? In my HA the device is seen as light and obviously has no attributes
You may need to delete the device and re-pair it.
I just tried, but via Phoscon I can't find it as a sensor, but just as a light, and then in HA. Where am I wrong? Thanks
Maybe this?
@SwoopX , lol, yep, I can make this integration, all the code is already in place, will be fast.
@meco489 Can you take the same screenshoot but with consumption effective ? I ask that because for exemple on plug legrand use Voltage + Current + Power, but in reality only Power is working (other value stay at 0) The device is out of the box, or you already have updated it with bticino gateway ? (legrand electrical mesurement don't work without update) And if I make code modification, do you know how to compile it to test ?
@erbagiovanni Hi, in phoscon I have never seen it .... it was associated with phoscon but only displayed on deconz-gui. In HA it was automatically recognized as a current sensor. Good luck
And @SwoopX is right, on my side I have never see a Legrand device works for measurement without update. IDK for bticino, but are you using an updated device or one "out of the box" ?
And yes sensor is invisible on Phoscon.
Maybe this Is what I am missing. What you mean with "updated"? I see firmware version and It says 35.
So you have the same than @meco489 , no reason for yours don't work. This device can create 2 devices, 1 light because it's a wired device (but useless) and a sensor device.
Are you sure you have nothing news in HASS ?
Dou you know ho to acess to sensors list using JSON and webbrowser ? With an url like this one > http://deconz_ip:deconz_port/api/api_key/sensors
A deconz restart (and HASS as well) also sometimes helps.
I have the same problem. DIN module with firmware 35 is integrated in deconz but is not seen in phoscon or in hassio. I tried to reset the din module and reintegrate it but nothing. i tried restarting deconz and hassio but nothing.
@erbagiovanni @seymourddr just to close the obvious out. You are both running on .74, right?
Yes, .74. Tomorrow I'll try to get sensor list via JSON and put it here. I'll also try ti see the component in deconz GUI
Il sab 7 mar 2020, 01:05 SwoopX notifications@github.com ha scritto:
@erbagiovanni https://github.com/erbagiovanni @seymourddr https://github.com/seymourddr just to close the obvious out. You are both running on .74, right?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2456?email_source=notifications&email_token=AOM4Z3B6LYOKF7ONOJOHROLRGGFTBA5CNFSM4KWCD232YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEODHPEI#issuecomment-596014993, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOM4Z3FDBJ2T27KWSL37MXDRGGFTBANCNFSM4KWCD23Q .
Yep, thx. And if you can compare that you see in the GUI with the screenshoot on previous post, to see is something is different,pls
Done, here what i see, via JSON I see it under lights and not under sensors
Ok, so it's because the last version. The device called "Misuratore potenza assorbita" is the conbee. https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2525 Long story, but during your inclusion phase, was not the device that was detected but the conbee.
The biticione device is the one that start with 000474
And ATMit's unreachable on your screen, the name is grayed.
and the pairing process have failed because you have as name the nwk 0x482f
Ok, if I understand well from other threads there we'll be a fix in next days. Many thanks for your support!
The fix will be for the name problem, not for the device integration. For me the pairing have missed, if it work you will see the node with yellow bar connected to the node with blue bar (the conbee).
Better with ungrayed name More better with correct name "Consumption awarness device"
I havent this device to test, but it haven"t led to check process ?
@erbagiovanni @seymourddr just to close the obvious out. You are both running on .74, right? yes
Question: the device is already associated with the legrand gateway. Could this be the problem?
Nope, because you need to reset it, to pair it with the conbee.
ok, so you can confirm it's forbidden to have une device paired to more than one network (in my case one with legrand GW, the other with Conbee)? Sorry for all this questions but I'm new to this world. If so, is there any chance to solve my problem (avoiding to buy a second device)?
@erbagiovanni It's not forbidden, it's simply not possible afaik. It is pretty much like with wifis. The wifi ID is the PAN ID in zigbee and the network key which as a similar function is zigbee. The exception is that a device can only remeber the gateway it is currently associated with. Otherwise, it must be reset and paired again.
That's probably also the reason why you haven't any line drawn in your screenshot.
Now it's clear to me. All my BTicino devices are integrated in HA via "integrations" functionality and legrand gateway, but for some reason this module is not seen there. So, thanks again all for tour support, I'll find another way!
But you are using the official Legrand gateway or the conbee ? And you want to use wich one ?
At the moment I have both. I would like to keep official Legrand to let my family use their own app (easier...) and conbee to control with HA everything, legrand devices and other sensors. This mixed scenario is ok for all devices except this power module, as even if connected to legrand gateway it's not shown in HA (while all lights and power outlets are correctly mapped)
HI all, OK, I'm trying to pair the bTicino F20T60A module. The module is joined to the network but cannot understand how to read the values in Home Assistant. In HA integrations tab, scrolling the list of the devices paired with the ConBeeII I cannot find anything.
I'm running deconz in docker, version .75. I'm sure I'm missing something very stupid, I don't find it. Can you help me?
Hello, I think you device is bad paired. The name is grayed and (but I can't be sure yet) if all is good you will have a "name" instead of 0x4e17.
If all is good you will see 2 new devices in HA, a light useless, and a new sensor. ² And I m not using HA, but on some app, you need to "synchronise" the app with deconz after adding a device.
BTW @seymourddr, it s working on your side now ?
Thank you. I think there is something wrong with the database, because I've reset the F20T60A module (red light is always on) and I deleted the node in the deConz GUI. But if I restart deConz the node is still there.
Can I check the database in any way? Thank you. romano
Il lun 23 mar 2020, 19:58 Smanar notifications@github.com ha scritto:
Hello, I think you device is bad paired. The name is grayed and (but I can't be sure yet) if all is good you will have a "name" instead of 0x4e17.
If all is good you will see a new sensor (not light) in HA.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2456#issuecomment-602793449, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSG4VVYH2M4WDMM45SE5RLRI6WLXANCNFSM4KWCD23Q .
Ok, found on the db:
sqlite> select * from devices; ... 17|00:04:74:00:00:a1:32:f0|1584857930|19991
but it is not in nodes nor in sensors. Thereis a "lights" table? I don't see it with .tables......
thank you r.
On Mon, Mar 23, 2020 at 8:30 PM Romano Trampus romano.trampus@gmail.com wrote:
Thank you. I think there is something wrong with the database, because I've reset the F20T60A module (red light is always on) and I deleted the node in the deConz GUI. But if I restart deConz the node is still there.
Can I check the database in any way? Thank you. romano
Il lun 23 mar 2020, 19:58 Smanar notifications@github.com ha scritto:
Hello, I think you device is bad paired. The name is grayed and (but I can't be sure yet) if all is good you will have a "name" instead of 0x4e17.
If all is good you will see a new sensor (not light) in HA.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2456#issuecomment-602793449, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSG4VVYH2M4WDMM45SE5RLRI6WLXANCNFSM4KWCD23Q .
nodes
is the lights table, i.e. the table containing the /lights
resources. devices
contains the nodes as shown in the GUI; device_gui
contains the screen coordinates, and device_descriptors
contains the simple descriptor per endpoint (as a BLOB). These are linked to devices
by id
; nodes
and sensors
are linked by mac
, which is the prefix for uniqueid
(which is called mac
in nodes
).
@rotragit don't loose your time trying to delete it Just re-include it, will be faster, and I think you will need somes other tries ^^ (the new setting will overwrite the previous one).
The node is stll here but I think the NKW (the 0xXXXX name) have changed ?
@ebaauw @Smanar thank you. I tried several times but it's only paired as a light (and router). I have cleaned the db now, it's a 3 minutes work or less. Just not to pair in the wrong mode: I have to pair in deConz or in Phoscon? In the latter, as a sensor, switch or light?
Hi, I have installed a RaspBee for my home automation. I can connect some BTicino products, using Legrand integration .... under the list of functioning products. I can't connect a DIN module for power measurement. I attach below the screenshots. Thanks in advance and congratulations for the work you are doing. Domenico
Working Products:
Non-functioning products: