Hi
I installed Grenton Smart Home system ver. 1.0. The configuration included:
- CLU - central unit
- 1 pcs Smart Panel, 3 pcs. Touch Panels connected by TF-BUS(RS435)
- 2 pcs DIGITAL IN modules connected by TF-BUS(RS435)
- HTTP GATE to make integration with HA connected by TF-BUS(RS435)
- 9 pcs - Z-WAVE switches, eg. double switches to controls lights
I use Raspberry Pi 4B with 4GB RAM and installed:
- Home Assistant 0.117.1
- HassOS 4.15
- Home Assistant OS (4.19.127-v7l)
I wrote simple integration to control Z-WAVE switches. I used REST platform.
It’s configuration.yaml to control 7 switches.
switch:
# grenton Z-WAVE switch
- platform: rest
resource: IP_address/switch/hol_LED
name: 'hol_LED'
body_on: '{"state": "on"}'
body_off: '{"state": "off"}'
is_on_template: '{{ value_json.is_active }}'
headers:
Content-Type: application/json
verify_ssl: true
- platform: rest
resource: IP_address/switch/hol_lampa
name: 'hol_lampa'
body_on: '{"state": "on"}'
body_off: '{"state": "off"}'
is_on_template: '{{ value_json.is_active }}'
headers:
Content-Type: application/json
verify_ssl: true
- platform: rest
resource: IP_address/switch/laz_kom_lampy
name: 'laz_kom_lampy'
body_on: '{"state": "on"}'
body_off: '{"state": "off"}'
is_on_template: '{{ value_json.is_active }}'
headers:
Content-Type: application/json
verify_ssl: true
- platform: rest
resource: IP_address/switch/laz_kom_lustro
name: 'laz_kom_lustro'
body_on: '{"state": "on"}'
body_off: '{"state": "off"}'
is_on_template: '{{ value_json.is_active }}'
headers:
Content-Type: application/json
verify_ssl: true
- platform: rest
resource: IP_address/switch/korytarz
name: 'korytarz'
body_on: '{"state": "on"}'
body_off: '{"state": "off"}'
is_on_template: '{{ value_json.is_active }}'
headers:
Content-Type: application/json
verify_ssl: true
- platform: rest
resource: IP_address/switch/silownia
name: 'silownia'
body_on: '{"state": "on"}'
body_off: '{"state": "off"}'
is_on_template: '{{ value_json.is_active }}'
headers:
Content-Type: application/json
verify_ssl: true
- platform: rest
resource: IP_address/switch/laz_sciana_wodna_lampy
name: 'laz_sciana_wodna_lampy'
body_on: '{"state": "on"}'
body_off: '{"state": "off"}'
is_on_template: '{{ value_json.is_active }}'
headers:
Content-Type: application/json
verify_ssl: true
After restart HA server I received ERROR log for three switches:
First occurred: 14:09:35 (3 occurrences)
Last logged: 14:09:35
- No route to resource/endpoint: IP_address/switch/laz_kom_lampy
- No route to resource/endpoint: IP_address/switch/laz_kom_lustro
- No route to resource/endpoint: IP_address/switch/korytarz
And one WARNING:
First occurred: 14:09:35 (3 occurrences)
Last logged: 14:09:35
Setup of switch platform rest is taking over 10 seconds.
The four other switches are installed and working properly. All of switches are tested by ARC and working properly. I tested separately switches in HA (only one in configuralion.yaml) everything working properly. I added timeout to each switch, eg. 20, 30 or 60 without results.
What should I do to run all switches not only some?
Darek