Weishaupt integration

Nailed it! After 2 hours of configure the Raspbian system i finally did! Thanks a lot for your work Dirk!

Hi dirk! (its me again ;D)

i have one last question. Do you have a nice card-config? I added it on a site with a sensor card but there is just the “dummy” and with a click on it, the single attributes will shown.

Do you have something nicer solution?
Best regards

This command line sensor has several attributes were the concrete data is stored. You need to add a new sensor for every attribute that you want to directly show within your user interface.

Add this to configuration.yaml and duplicate the sensors content for every attribute that you want to use within ui.

sensor:
- platform: template
    sensors:
      heating_aussentemperatur_aktuell:
        friendly_name: "Heizung - Außentemperatur Aktuell"
        value_template: "{{ states.sensor.heating.attributes.aussentemperatur_aktuell }}"
        unit_of_measurement: '°C'
        device_class: 'temperature'

Happy to hear that it works in general.

Best, dirk

1 Like

Nice Thank you!
I need to check the params because some values are in the wrong variable but i will check this tommorow.

@dm82m Your github repository seems to be deleted. Do you have a version of wem_status.py for me, please?

hey @dechris,

I went away from using my own solution and switched to a version based on Chromium and Selenium by Neiser on Github.

My reworked, ready to use solution for HomeAssistant can be found here: https://github.com/dm82m/wemportal-scripts

Feel free to use it. It consumes more memory but is way more stable compared to my old solution.

Best,
Dirk

1 Like

I think your solution (install of additional packages) is not compatible with the home assistant standard appliance (hassos). Does somebody know how to get the requirements in my machine?

Blockquote
You need to install the chromium-driver and also the Python selenium package

Update:
I installed the chrome browser via web terminal add-on

apk --update add chromium-chromedriver
1 Like

does it work then with this installation? python package install should not be a problem at all…

I got it work in the Terminal, but it does not work as a sensor.

Protokolldetails ( ERROR )
Logger: homeassistant.components.command_line.sensor
Source: components/command_line/sensor.py:101
Integration: command_line (documentation, issues)
First occurred: 6:55:27 (1 occurrences)
Last logged: 6:55:27

Command failed: python3 /home/homeassistant/.homeassistant/scripts/ExportFachmannInfos.py

@Ph4t0n: How did you fix the problem with the Command?

I guess its system specific. I would suggest to check the user that runs HomeAssistant on your system and then switch to that user on the system and run the command as that user. You should then be able to see a more detailed error log.

Another idea: go to “developer tools” -> “logs” -> “show full log” and check what kind of errors are shown there.

I tried to get more information with the logger and the debug level. But no additional information.

2020-05-14 06:46:34 DEBUG (SyncWorker_1) [homeassistant.components.command_line.sensor] Running command: python /config/scripts/ExportFachmannInfos.py
2020-05-14 06:46:34 ERROR (SyncWorker_1) [homeassistant.components.command_line.sensor] Command failed: python /config/scripts/ExportFachmannInfos.py
2020-05-14 06:46:34 WARNING (SyncWorker_1) [homeassistant.components.command_line.sensor] Empty reply found when expecting JSON data

I tried different combinations with python vs python3 and another path.

Do you have any plans to make an implementation as a seperate component for home assistant? I think my scenario (HassOS) is the default one for home assistant and is used by the most people.

Hey Chris,

i tried 3 afternoons of fixing this problem but i found no solution…
In the end i installed Home Assistant completly new on my Raspberry.
After that the problem was fixed. Sorry that i dont have any other fix for you.

Best regards

Hi,
thanks for your plugin. As I learned, it used to work without Chromium headend which is required now? Is there any possibility to again use it only with python, as hass,io core does not have chromium headend included as far as I know?

Hi Dirk,
Will it be deployed for HACS?
B/Rgs Mads

For anyone still looking for a solution, I made a custom component that scrapes WEM portal and is now available on HACS. https://github.com/erikkastelec/hass-WEM-Portal

4 Likes

Thanks for your effort on this plugin! I really hoped that Weishaupt made integration with home automation systems easier. I already wiresharked/inspected the traffic between the wem-sg and the WEM Portal but it seems it is using xmpp with client certificate authentication. (With a private key that is on the wem-sg OS) so I think a direct communication between web-sg and Home assistant is almost impossible. Or I need to figure out if there is a way in setting up my own xmpp server and point the wem-sg to this server which probably involves setting up my own DNS server that points to the fake XMPP server. But despite that the client certificate authentication could be the dealbreaker here.
You can find out your Certificate CN when you browse to the IP off your wem-sg and logging in using basic authentication.

I think for now your plugin is the best way forward on this. Are there future plans to include setting the room temperature, Holiday mode, time programs,…?

Thanks!

If you find any other way of interfacing with the device, please let me know. All the settings that are available via the mobile app will be included in the future updates, but I can’t give an accurate time frame yet.

Hi I wanted to intergrate your Plugin but all sensor wont get any data. Is this issue known?
Best regards

Such an issue was not encountered by anyone so far. I suggest you take a look at logs to see if there is a problem with authentication. If the issue persists, please open an issue on github and I will look into it further.

Thanks for the reply.
I deleted the integration and had to delete all the “old” enitities because they were recovered when i “reinstalled” the integration.

is there a list of einities that should come with the integration?
Best regards