Commit graph

24 commits

Author SHA1 Message Date
J. Nick Koston
0693d8a064
Update zwave_js to use new fan entity model () 2021-01-28 10:15:24 +01:00
Marcel van der Veldt
32c6509d55
Remove unwanted brightness check in zwave_js light () 2021-01-27 13:07:02 +01:00
Martin Hjelmare
f387e833c3
Add zwave_js add-on config flow support () 2021-01-27 08:56:16 +01:00
Paulus Schoutsen
b9a525a9a7
Add an HTTP view to dump the Z-Wave JS state ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-01-26 10:27:20 +01:00
Marcel van der Veldt
11009b99bd
Improve zwave_js light targetvalue vs currentValue selection () 2021-01-25 22:09:12 +01:00
Ian Tewksbury
666a94a8e1
Add zwave_js ZWavePropertyBinarySensory () 2021-01-25 15:50:21 +01:00
Paulus Schoutsen
bf8d17f1b5
Better wait for Z-Wave to be initialized () 2021-01-25 13:12:58 +01:00
Raman Gupta
c2900ff888
Add support for zwave_js lock services () 2021-01-23 18:21:31 -05:00
Chris
68e7ecb74b
Add zwave-js fan platform ()
* Add zwave-js fan platform

* Update remaining tests

* Missing awaits, tests fixed

* Fix typing

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-23 00:11:32 +01:00
Chris
198b875a6f
Add cover platform to zwave js () 2021-01-22 11:51:39 -05:00
Charles Garwood
c1addde6f9
Add node_status websocket API command to zwave_js () 2021-01-19 16:41:24 +01:00
Charles Garwood
8de0b7b948
Add add & remove node commands to zwave_js websocket api () 2021-01-18 10:08:52 -05:00
Raman Gupta
b2f914823d
Add climate platform to zwave_js ()
* add zwave_js support for climate

* fix

* add fixture

* rename fixture

* fix variable name error

* add tests

* fix tests and handle set_temp properly based on unit

* update call being tested

* fix tests

* improve coverage

* fix docstring

* address review comments

* fix test

* update enum class name

* bump zwave-js-server-python version and assume primary_value is always set

* add additional coverage

* fix docstrings and move populating modes/presets into initialization

* attempt to address comments

* improve comment

* move mode value into a variable so its easier to iterate in the future

* dont assume mode as a discovery point

* assume all values are available when node is ready

* fix order of operations

* switch to valueerror

* use primary value

* readd property and type to discovery schema
2021-01-18 03:45:06 +01:00
Raman Gupta
562d30319b
Add lock platform to zwave_js ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-16 11:43:25 -05:00
Charles Garwood
9dbf14188a
Add WebSocket API Foundation for zwave_js () 2021-01-15 15:17:40 +01:00
Marcel van der Veldt
071c8cc67d
Add binary_sensor platform to zwave_js ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-15 09:15:03 -05:00
Paulus Schoutsen
93c2f2bbeb
Bump Z-Wave JS Server Python to 0.9.0 () 2021-01-15 10:59:35 +01:00
Marcel van der Veldt
a276f2d19e
Fix zwave_js adding not fully interviewed nodes ()
* fix situation were nodes are being added or not fully interviewed

* adjust test

* lint
2021-01-15 01:09:03 +01:00
Petro31
3ebc5d45a8
Add energy and power sensor tests & fix device_class () 2021-01-13 15:37:54 -05:00
Martin Hjelmare
79d37fdf12
Add zwave_js light platform tests ()
* Add bulb 6 multi color device state fixture

* Add light test foundation

* Add no cover comment for todo code

* Update hs_color

* Test turn on light

* Test light turn off

* Fix brightness comparison

* Test setting same brightness

* Test setting same rgb color

* Test color temp update

* Test setting same color temp

* Add entity module to coverage calculation

* Fix typing
2021-01-13 16:28:51 +01:00
Charles Garwood
be2aba6c52
Fix docstring in zwave_js switch test () 2021-01-12 14:29:12 +01:00
Charles Garwood
f312b87a3f
Add switch platform to zwave_js () 2021-01-11 18:40:39 -05:00
Martin Hjelmare
d270f9515b
Add zwave_js init module tests ()
* Add entry setup and unload test

* Test home assistant stop

* Test on connect and on disconnect

* Test client connect timeout

* Test ready node added

* Test non ready node added

* Test existing node not ready

* Test device registry state

* Add common test tools module

* Add existing ready node test

* Include init module in coverage calculation

* Clean docstrings
2021-01-11 16:05:11 +01:00
Charles Garwood
d68fdbc283
Add zwave_js integration ()
* Run zwave_js scaffold ()

* Add zwave_js basic connection to zwave server ()

* add the basic connection to zwave server

* fix name

* Fix requirements

* Fix things

* Version bump dep to 0.1.2

* fix pylint

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Bump zwave-js-server-python to 0.2.0

* Use zwave js server version check instead of fetching full state ()

* Use version check instead of fetching full state

* Fix tests

* Use 0.3.0

* Also catch aiohttp client errors

* Update docstring

* Lint

* Unignore zwave_js

* Add zwave_js entity discovery basics and sensor platform ()

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Complete zwave_js typing ()

* Type discovery

* Type init

* Type entity

* Type config flow

* Type sensor

* Require typing of zwave_js

* Complete zwave_js config flow test coverage ()

* Correct zwave_js sensor device class ()

* Fix zwave_js KeyError on entry setup timeout ()

* Bump zwave-js-server-python to 0.5.0 ()

* Remove stale callback signal from zwave_js ()

* Add light platform to zwave_js integration ()

* add light platform

* styling fix

* fix type hint

* Fix typing

* Update homeassistant/components/zwave_js/const.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/entity.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* color temp should be integer

* guard Nonetype error

* Update homeassistant/components/zwave_js/light.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/zwave_js/light.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* some fixes after merging

* add additional guards for None values

* adjustments for rgb lights

* Fix typing

* Fix black

* Bump zwave-js-server-python to 0.6.0

* guard value updated log

* remove value_id lookup as its no longer needed

* fiz sending white value

* Update homeassistant/components/zwave_js/light.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add zwave_js test foundation ()

* Exclude text files from codespell

* Add basic dump fixture

* Add test foundation

* Fix test after rebase

* Exclude jsonl files from codespell

* Rename fixture file type to jsonl

* Update fixture path

* Fix stale docstring

* Add controller state json fixture

* Add multisensor 6 state json fixture

* Update fixtures

* Remove basic dump fixture

* Fix fixtures after library bump

* Update codeowner

* Minor cleanup Z-Wave JS ()

* Update zwave_js device_info ()

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-01-11 00:08:25 +01:00