Wiser Schneider

I’ve tried a fix for the issue raised in the logs.
Could you try installing the “master” version to test the fix:

hello,
I’ve deployed the new files.
Unfotunatelly it’s not working.
Here are the logs :

,2021-06-14 20:03:54 ERROR (MainThread) [aiohttp.server] Error handling request
,Traceback (most recent call last):
, File “/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py”, line 422, in _handle_request
, resp = await self._request_handler(request)
, File “/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py”, line 499, in _handle
, resp = await handler(request)
, File “/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 56, in security_filter_middleware
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 18, in request_context_middleware
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 74, in ban_middleware
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 135, in auth_middleware
, return await handler(request)
, File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 131, in handle
, result = await result
, File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 155, in post
, return await super().post(request, flow_id)
, File “/usr/src/homeassistant/homeassistant/components/http/data_validator.py”, line 63, in wrapper
, result = await method(view, request, *args, **kwargs)
, File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 109, in post
, result = await self._flow_mgr.async_configure(flow_id, data)
, File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 199, in async_configure
, result = await self._async_handle_step(flow, cur_step[“step_id”], user_input)
, File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 257, in _async_handle_step
, result: FlowResult = await getattr(flow, method)(user_input)
, File “/config/custom_components/wisersmart/config_flow.py”, line 77, in async_step_user
, device = await self._test_connection(
, File “/config/custom_components/wisersmart/config_flow.py”, line 51, in _test_connection
, self.wiserSmart = await self._hass.async_add_executor_job(
,AttributeError: ‘WiserSmartFlowHandler’ object has no attribute ‘_hass’
,cat: can’t open ‘/sys/devices/platform/soc/soc:firmware/get_throttled’: No such file or directory
,2021-06-14 20:05:41 ERROR (SyncWorker_27) [homeassistant.components.command_line] Command failed: cat /sys/devices/platform/soc/soc:firmware/get_throttled

thank you again for your help and your work !

My bad … wrong copy and paste…
Please could you try again?
T.

you’re awesome.
Working like a charm.
Thank you a lot for your job and your help !

Cool !!
I’ll create an “official” version as soon as possible.
T.

Anyone know if newer Schneider Electric’s Wiser Energy products are compatible with ZHA (via zigpy)?

https://www.home-assistant.io/integrations/zha/

https://github.com/zigpy/zha-device-handlers

https://github.com/zigpy/zigpy

I am aware that ZHA (and zigpy) do not yet support any ZGP (Zigbee Green Power) based devices:

https://community.home-assistant.io/t/zha-integration-to-get-full-support-for-zgp-zigbee-green-power-devices/277149/

Hi.
I bought 2 Schneider Wiser PowerTags and I had hoped to use them with Zigbee2Mqtt, but unfortunately they run some kind of Green Power profile which is not supported.
So if anyone else stumbles over this thread, then here is what I ended up doing:

I bought the Wiser IP Module and now I have written a small c# application for pulling data directly from the module over HTTPS and transmit it to MQTT.
You could do same thing directly with the Home Assistant HTTP sensor, but I thought this was a bit more easier and more generic.

My git repository can be found here if someone can use it for anything.

Zigbee2MQTT uses zigbee-herdsman which supports ZGP (Zigbee Green Power) but understand most such devices are rather unique so need to write custom converters for zigbee-herdsman-converters, see:

https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html

There is a fork/branch/patch of zigpy (for ZHA) which will also add ZGP support but similarly there, even using that you would still need to write custom converter (a.k.a. quirk) handler for each ZGP device:

https://www.home-assistant.io/integrations/zha#zha-exception-and-deviation-handling

Thanks for the feedback.
I was looking into making custom support in Zigbee2Mqtt for this, but devices could not even pair and it seemed like some part of Green Power specification that are not yet implemented in Z2M so I decided to take this other route.
Especially also because these unpaired Wiser devices kept crashing my Zigbee devices when constantly trying to join a network.
I would love to move away from the Wiser IP Module later, especially because I’m not sure it exposes everything the module can report of statistics. I guess I should get a zigbee sniffer so I could actually see which data is exchanged.

Hi Nicolai,
I’m giving wiser2mqtt a try since I also have one of the Wiser IP Modules like you, and my fair share of power tags scattered across the distribution board. However I have a couple of questions since building these kind of “standalone” applications is a bit new to me;

  1. Configuration: I have Mosquitto installed on HA, with an internal user/pass. I didn’t see a user/pass configuration variable in the JSON file, is it required?
  2. Also in configuration: The username and password under the “wiser” section, which are these? Is it the one I use for the Wiser portal? They have started using 2fac now as well, so figured I ask just in case.
  3. the Wiser2Mqtt seems to be a docker-package/image. Are there any base requirements to get this working too? I was playing around with Podman on one of my Fedora boxes but it threw some errors (I’ll see if I can re-run it tomorrow and grab those errors). Just want to make sure I’m not totally off :smiley:

If we get this working I can probably help with testing and bug-reports, not a strong C programmer.

Actually gotten one step further, built the docker image on my local laptop instead, and it completed without complaint.
Found the password encryption scheme on a french forum, so now I found that too.
The only part left is getting the username/password for the MQTT session into Home Assistant, and it should be closer to something working. :slight_smile:

Has there been any progress on this integration? About to order a Schneider Gateway and a clatter of PowerTags and would love to get it integrated into HA.

Hi, I have an Acti9 PowerTag Link HD A9XMWD100 with several powertags connected. The link is connected to my network and I’m planning on getting the data through Modbus TCP/IP. Let’s see how this goes.

1 Like

Its been a while since the post but I would be really interested in getting the devices to work directly as zigbee devices.
I did try to pair them in Home Assistant and I was able to see them but not do anything with them.
I would be happy to help out in testing.

1 Like

Hey guys,

New to this forum after deciding to put all my money into Wiser instead of Plejd for the new house we’re building. We’ll have outlets, dimming and some sensor guards through Wiser, and then some other systems like Unifi, Ajax, Siemens, Nibe and so on.

My goal is to be able to keep everything locally, and HAOS seems like the perfect choice. Looked at Homey, but that product seems outdated.

So, my question is, how well integrated (and easy) is Wiser (EU) in HAOS? Would it be possible to integrate Wiser without the use for their Gateway? I recently bought a Sonoff USB stick for Zigbee, and my main goal is to run all Zigbee through that. Or would a better idea be to run their Gateway and then integrate the Gateway into HAOS?

Thank you in advance

1 Like

I just recently started to use the gateway instead of any other Zigbee solution and it works very well.

Pop in to this topic if you want to know more about the Drayton Wiser integration:

Edit: I’ve just seen that you did it already. Never mind then…

Yeah, but I don’t think the Drayton is what I have. Everyone here are taking about heating, but that’s not among the common base products in Sweden.

What I’m interested in is everytthing in this picture:

3 Likes

I’m also interested in the same products you’re referring to and how to use that in HA :slight_smile:

2 Likes

I see, I thought that you were talking about the heating product.

Looking at your image, the mobile app looks the same as the Drayton Wiser heating one. In Germany the Drayton Wiser products are sold under the brand name Eberle. They include iTRVs, Room Thermostats, Plugs (used as repeaters), and a floor heating module.

Some Schneider Electric products are supported by Zigbee2MQTT and looks like they are on your picture as well, but they are not named in Z2M as Wiser. Probably that is due to the new brand naming from Schneider Electric.

What I can tell is that, these devices can really be updated through their Gateway, like Legrand’s Netatmo products, or Legrand’s Biticino products. If you do choose to set them up with the Wiser Gateway, then you need to try to access the Gateway the same way as in the Wiser integration and provide the developers with the outputs, then they will be able to add it probably to their custom integration.

If you do go with just the Zigbee dongle then you might need to put some effort to have these devices supported in Z2M or ZHA.

So basically what you say is that it’s better to run the Wiser-Gateway, and then talk with the Wiser-Gateway through HAOS?