Homewizard intergration

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?

Dear All,

I found out what the problem was with getting the status of an switch
like underneath statement:

    value_template: '{{ value_json.response.switches[4].status=="on" }}'
                                                                                    ^
                                                                                    |

The numer between the brackets is not the number of the ID but it is the number of the place in the Array of the switches.

If you want to know what number you have to put between the brackets, go to http://IP/Homewizard_Password/get-status

You get the status of all devices connected to your home wizard.
I saw in my system the status of the switches if you look closely you see that the id numbers are not exactly adding up. See the example how you can see which array number you have to put between the brackets for which id:

“switches”:[ Array Numbers:
{“id”:0,“type”:“switch”,“status”:“off”}, 0
{“id”:3,“type”:“switch”,“status”:“off”}, 1
{“id”:4,“type”:“switch”,“status”:“off”}, 2
{“id”:5,“type”:“switch”,“status”:“on”}, 3
{“id”:8,“type”:“switch”,“status”:“on”}, 4
{“id”:9,“type”:“switch”,“status”:“off”}] 5

if i want to readout the status of ID 8 i put the underneath lines in my code:

    command_state: curl "http://IP:Port/Homewizard_Password/get-status"
    value_template: '{{ value_json.response.switches[4].status=="on" }}'

This is working perfectly,

Good luck with programming :wink:

With the commands in the yaml file i can see the switch in my entities but not in the interface. What am i doing wrong?

Sorry had to with syntax copied from the site but it’s working now.

Hi I’m only just starting with HA, and am really struggeling to follow some of the implementations.
I really want to embed my Homewizard Link in to HA. However I am not sure if this is possible. This is a new kind of Hub from Homewizard. I don’t have the Homewizard itself, and therefore cannot find my switches though the http request.
Are there any ways to implement de Homewizard Link into HA?
I dont mind setting up a proxy or somthing, however the HTTP Rest API is no longer available. So I cannot try that out either.
Is there anyone who can help me out?

I am a little bit confused with local control, with app it works:

  1. What is password exactly- Homewizard one or the one assigned by app to controller?
  2. IP port- is it always 80?
  3. When I go to the IP and try to log in- user and password- which ones?
    As You can see I am somehow stuck on primitive problems :frowning: maybe due to very sparse documentation (besides my elderly and tired brain :slight_smile:
    TIA, JR

I tried to control my comfy sunscreen via homewizard however this code doesn’t work in my config.yaml file.

Because the “command_up”,“command_down” & “command_stop” wasn’t recognized, is there a way to work around? Or maybe a different approach?

Best regards.

@TinusD

Try and change “switch” into “covers“ and “vswitch” into “curtains”.
In your command change “sf” into “sw”.
This works for me.

Thnxs JonOv :+1:t3:

Will try this in a couple of days. The wind is quit strong today and tomorrow.:grimacing:

@JonOv Today I tried the new set up. And it worked. Indeed I had to put it under “cover” .

Thnxs a lot.

to get the degrees of the wind direction, use:

value_template: “{{ value_json.response.windmeters[0].dir.split (’ ')[1] }}”

After some months started again with HASSIO as I was still curious to get it working after crashing/locked SD cards before.
Now have the fully HomeWizard working in HA after some googling and trying as only the curl command did not work and needed some extra instructions.
Also added the HomeKit and now as well directly available in HomeKit on iPhone and iPad.
So your HomeWizard can still work as a great Rx/Tx hub without investing in other extra equipment.

Dear Tinus,
I’m having the same problem.
What is the correct code?

This is mine, what am i missing?

cover:

  • platform: command_line

    cover:

    vcurtains0:

      command_up: curl “http://192.168.1.xxx/password/sw/41/up”
    
      command_down: curl “http://192.168.1.xxx/password/sw/41/down”
    
      command_stop: curl “http://192.168.1.xxx/password/sw/41/stop”
    
      friendly_name: rolluik1
    

With regards,
Eric

Hoi Eric:

Dit staat er in mijn config.yaml

cover:
- platform: command_line
covers:
zonnescherm:
command_open: curl “http://ipadres:80/password/sw/41/up
command_close: curl “http://ipadres:80/password/sw/41/down
command_stop: curl “http://ipadress:80/password/sw/41/stop

I don’t think “friendly name” is needed as it is just beneath covers. Just change “zonnescherm” to your choice “rolluik1”

And I would check if “41” is the id of your “rolluik1”. You can use this command:
http://IP_HOMEWIZARD:80/PASSWRD/get-sensors

Hopefully this works for you otherwise let me know.

Good Luck ::+1:t3:

PS. I don’t get the code in with correct spaces as in the yaml code.

Beste Tinus/Dear Tinus,
Bedankt/Thanx!

I’ll look into it en let you know!

It Works!!!
Thank you so much/bedankt Tinus