Homewizard intergration

Hi hello!
Is there a way to connect the Homewizard with Home Assistant? Homewizard is a Dutch company specialised in affordable solutions for home. they have their own app where you can read a lot of information. as the doors are open, temprature, etc. They alsohave a energy link that you can read your smart energy meters remotely and they work great with Smartwares products and Klik aan Klik Uit.It would be perfect to combine with thise Home Assistant!

1 Like

There is a Homebridge plugin for the Homewizard arround and it works. Only i cannot find a way to get the Homewizard in too the hass. The code for the plugin can be found here: https://github.com/rthewhite/homebridge-homewizard

Can anyone help me with this?

Hey! I realize this is a late response, but I managed to bridge some of the Homewizard switches that Action sells over to support an HTTP REST API and MQTT. Currently using the MQTT implementation to control some lights and it works great:

I’ve made both repos publically available on Github:

The only downside, for now, is that you have to find a machine on your local network to run the Node.js MQTT/HTTP app so it can successfully proxy requests to Homewizard and then return the on/off state to Home Wizard. If I find the time I’ll gladly make this into an Hass.io add-on, but for now, I’ve set up another Raspberry Pi with resinOS that runs the MQTT proxy inside a Docker container.

PS: I’ll make this into a blogpost if it sounds to confusing, will update here.

a little bit oldstyle… but anyway, I wrote a bash script to remote control my homewizard:

and here you find my configuration which i was using with home-assistant and homewizard:

Type http://IP_HOMEWIZARD:PORT/PASSWRD/get-sensors and a list will appear with all the switches etc.

In configuration.yaml now type:switch:

  • platform: command_line
    switches:
    vswitch0:
    command_on: curl “http://IP_OF_HOMEWIZARD:PORT/PASSWRD/sw/0/on”
    command_off: curl “http://IP_OF_HOMEWIZARD:PORT/PASSWRD/sw/0/off”
    friendly_name:
    vswitch1:
    command_on: curl “http://IP_OF_HOMEWIZARD:PORT/PASSWRD/sw/0/on”
    command_off: curl “http://IP_OF_HOMEWIZARD:PORT/PASSWRD/sw/0/off”
    friendly_name:

Repeat this for all your switches

Now the switch for ID:0 wil be visible in UI and you can control it.
In customize.yaml type:

switch.vswitch0:
icon: mdi:wall-sconce-flat (or any other)
assumed_state: false

also repeat this for all your switches

Now you have a nice UI.

The only issue i find is getting the state out of Homewizard:
I tried this:

sensor:

  • platform: rest
    resource: http://IP_OF_HOMEWIZARD:PORT/PASSWRD/get-status
    value_template: ‘{{ value_json[“response:”][“switches:”][[“id:0”][“type:”][“status:”].status] }}’

But i get no value…

Maybe someone can help me with this.

To get the temperature of thermometer with ID 1 i am using this:

value_template: ‘{{ value_json.response.thermometers[1].te }}’

maybe you can adopt this for your switches?

For switches you can use:

value_template: ‘{{ value_json.response.switches[1].status }}’

Thanks mgafner,

This works fine.
Now i wat to assign this value to the ui of home assistant.
Anny idea how too??

Hello,
I can retrieve all statuses from my homewizard via the rest platform.

My problem stil is:
When i switch on a light via my phone and Homewizard the status of my home assistant ui does not change.

How can i achieve this?

Solved:

switch:
  - platform: command_line
    switches:
      vswitch0:
        command_on: curl "http://IP_OF_HOMEWIZARD:PORT/PASSWRD/sw/0/on"
        command_off: curl "http://IP_OF_HOMEWIZARD:PORT/PASSWRD/sw/0/off"
        command_state: curl "http://IP_OF_HOMEWIZARD:PORT/PASSWRD/get-status"
        value_template: '{{ value_json.response.switches[0].status=="on" }}'
        friendly_name: THE_NAME_YOU_GIVE_IT
      vswitch1:
        command_on: curl "http://IP_OF_HOMEWIZARD:PORT/PASSWRD/sw/1/on"
        command_off: curl "http://IP_OF_HOMEWIZARD:PORT/PASSWRD/sw/1/off"
        command_state: curl "http://IP_OF_HOMEWIZARD:PORT/PASSWRD/get-status"
        value_template: '{{ value_json.response.switches[1].status=="on" }}'
        friendly_name: THE_NAME_YOU_GIVE_IT

This works perfect with HomeWizzard.

Hi there!

i wrote this in mine configuration.yaml
switches:
consoles:
command_on: curl ‘url:PASSWORD/sw/0/on’
command_off: curl ‘url:/PASSWORD/sw/0/off’
command_state: curl ‘url:/PASSWORD/get-status’
value_template: {{ value_json.response.switches[0].status==“on” }}’

But i get this error:
Failed Config
Switch.command_line
-Invalid config for [switch.command_line]: invalid template (TemplateSyntaxError: unexpected char ‘"’ at 44) for dictionary value @ data [‘switches’][‘consoles’][‘value_template’]. Got ‘‘{{ value_json.response.switches[0].status==“on” }}’’. (See ?, line ?).
What did i wrong?

Hi all,
Exactly the same problem here.
Any solutions available?
PPee

Yes, i changed it to this:

consoles:
command_on: curl ‘http://192.168.1.x:80/Password/sw/0/on
command_off: curl ‘http://192.168.1.x:80/Password/sw/0/off
command_state: curl ‘http://192.168.1.x:80/Password/get-status
value_template: ‘{{ value_json.response.switches[0].status==“on” }}’

And it works

Thanks joystickj,
Does not work for me.
I’m using the following instructions in the yaml to get an Homewizard on off switch working.

switch:

  • platform: command_line
    switches:
    homewizard_switch_proef:
    command_on: curl URL/PW/sw/30/on
    command_off: curl URL/PW/sw/30/off
    command_state: curl URL/PW/get-status
    value_template: {{ value_json.response.switches[30].status==“on” }}
    friendly_name: HWProef

On and Off works in the UI only if I use the instructions without the '.
The command_state and value_template instructions don’t work.

Any ideas?

Try replacing the quotes around ‘on’ with single quotes, or simply remove them
{{ value_json.response.switches[0].status==‘on’ }}
or
{{ value_json.response.switches[0].status==on }}

1 Like

I put this into configuration.yaml:

  - platform: rest
    resource: http://homewizard.fritz.box/bDsdWQQQeeec/get-status
    name: homewizard
    value_template: '{{ value_json.status }}'
    json_attributes:
    - response

  - platform: template
    sensors:
       temp_outside:
         value_template: '{{ states.sensor.homewizard.attributes.response.thermometers[0].te }}'
       hum_outside:
         value_template: '{{ states.sensor.homewizard.attributes.response.thermometers[0].hu }}'
       temp_inside:
         value_template: '{{ states.sensor.homewizard.attributes.response.thermometers[2].te }}'
       hum_inside:
         value_template: '{{ states.sensor.homewizard.attributes.response.thermometers[2].hu }}'

1 Like

Hello,
I changed the first post. (scroll up)

Maybe this helps.

Hi,

I have updated my configuration.yaml file with the instructions provided in the thread.
Home Assistant is happy (no errors are reported), but that doesn’t work for me.

I am wondering if this is because I just have a Smartwares plug acting as a controller (no hub) ?
Also I am not sure that sw/0/on is adressing the right device.

Issuing the command curl “http://IP_addr:80/PassWord/get-status” returns :
404: The requested file cannot be found

Thanks for any help you could provide.

This works fine for me. Is it also possible to give the sensors a friendly name?

I recently started using Home Assistant and would like to use my old homewizard in the mean time before phasing out all the 433mhz equipment.
With the comments above I was able to read the thermometers and control the lights from HA via the HomeWizard.

I’ve tried to find more information about how to connect to the other devices on the homewizard and found homewizard documentation about url’s but don’t know how to get this integrated into my HA. Does anyone have more information about this?