Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integration with Zwave
#1
You can integrate zwave with Home Assistant using a Zwave USB dongle. There are many available but I have tested zooZ 800 Zwave stick model ZST39. Make sure you select the correct model for your region. US and EU models have different operating frequencies. The EU models work on 868 Mhz. It can be plugged into raspberry Pi using a USB extension so that the Zwave stick can be placed away from the raspbery pi (in order to avoid inteference). Do not put near any wifi router or similar device, which may cause interferece




You do not need any other zwave controllerto set up the Zwave network. 
I also added a Zooz Outdoor Motion sensor ZSE70 EU. again select the correct model for your region.



It is easy to add the Zwave Integration to Home Assistant. n Home Assistant, go to Settings > Devices & Services.  
Click Add Integration and search for \"Z-Wave\".Choose either the Z-Wave JS or Z-Wave JS UI add-on. Z-Wave JS UI is generally recommended as it offers more features.

Install and configure the Z-Wave add-on:
If you chose Z-Wave JS UI, install the Z-Wave JS UI add-on from the add-on store.   
Start the add-on and configure it. You\'ll need to specify the device path for your Zooz 800 stick, which is usually something like /dev/ttyACM0 or /dev/ttyUSB0. You can find the exact path in the add-on logs or by using the ls -l /dev/serial/by-id command in your Home Assistant terminal.
You may also need to configure security keys and your region in the add-on settings. Yoyu can normaly leave as default

Add the Z-Wave integration:Once the add-on is configured, go back to Settings > Devices & Services and add the Z-Wave integration.   Home Assistant should automatically detect your Z-Wave stick and connect to it.

Add your Z-Wave devices:

After the integration is set up, you can start adding your Z-Wave devices.
Put your device in pairing mode and use the \"Add Device\" button in the Z-Wave integration to pair it with your network. For ZSE70 motion sensor, press the button on the back 3 times to put it into pairing mode
See the video on youtube at https://www.youtube.com/watch?v=sRLSCtSOkgk  You can ignore the part about using Docker/Container if you are using the Home assistant add-on.

after adding the device to the dashboard you should see the various sensor properties below  

 After pairing with the zooz motion sensor, you can map the motion sensor to a Virtual Zone on Comfort. A virtual zone can be enabled on Comfigurator on any zone higher than zone 9 by checking the Virtual Input checkbox in the zones screen. This allows external devices to activate and deactivate the virtual zone. It will ignore any open and close contacts on the physical zone inputs.

Go to Settings > Automations and Scenes > Automation. Create a new Automation for sensor off and On. . In Triggers select State, and search for \"When Outdoor motion sensor Motion detection changes from On to Off\"
Then  search  for MQTT Publish, enter comfort2mqtt/input11/setPayload=0 ie assuming Input 11 is the virtual zone, turn off if the sensor stops detecting motion . Save and name it eg Zooz Off

Do the opposite for motion sensor on to send an MQT messge for input 11 on,  ie
comfort2mqtt/input11/set  Payload=1

Go to File Editor and enter the virtual zone in configuration.yaml
   - name: TV PIR
     unique_id: \"comfort2_input11\"
     state_topic: \"comfort2mqtt/input11\"
     availability_topic: \"comfort2mqtt/alarm/online\"
     value_template: \'{{ value_json.State }}\'
     json_attributes_topic: \"comfort2mqtt/input11\"
     json_attributes_template: \'{{ value_json | tojson }}\'
     payload_on: \"1\"
     payload_off: \"0\"
     payload_available: \"1\"
     payload_not_available: \"0\"
     device_class: motion

Restart Home Assistant

when you add the zone to the dashboard you should see




The tv PIR is the virtual zone which should correspond with the state of the motion sensor. In this way zwave sensors can be part of the zones/inputs  in the security system
Reply
#2
To add another Zwave device eg Door window sensor Zooz ZSE41 to the network



Follow the instructions to enter pairing mode for the sensor
go to the Zwave Integration page and ADD DEVICE



Press ADD DEVICE. It may take a few minuts to discover and pair the new device When found you may be asked to enter the PIN which is found on the device label.



when added the confirmation screen should appear




The device list is shown







The device info for ZSE41






Press ADD to DASHBOARD and select the dashboard
The following parameters are displayed. Thestate open or closed is shown



Next create an automation to link the door/window sensor to a virtual zone in Comfort. Go to Automations, Create and Automation, Add Trigger search for State





Then Do MQTT Publish
Topic = comfort2mqtt/input12/setPayload = 1 



save and give it a name eg Zooz Window open
This sets Virtual Input 12 when the door window sensor is open
Create another automation for Zwave door window sensor closed, to send virtual input 12 payload = 0
The virtual input used eg 12 must b set as a Virtual input in Comfigurator.
This allows the zwave  door/winodw sensro to be a virtual input in Comfort
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)