boneIO 0.10.0.dev2__tar.gz → 0.10.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {boneio-0.10.0.dev2 → boneio-0.10.1}/PKG-INFO +1 -1
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/cover.py +3 -9
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/24x16/config.yaml +3 -1
- boneio-0.10.1/boneio/example_config/32x10/binary_sensor.yaml +111 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/32x10/config.yaml +3 -1
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover/config.yaml +3 -1
- boneio-0.10.1/boneio/example_config/cover_mix/binary_sensor.yaml +1 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover_mix/config.yaml +3 -1
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/config.py +6 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/ha_discovery.py +9 -9
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/yaml_util.py +0 -1
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/manager.py +4 -3
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/sdm120.json +1 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/sdm630.json +1 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/socomec_e03.json +1 -1
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/socomec_e23.json +1 -1
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/runner.py +1 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/schema.yaml +2 -2
- boneio-0.10.1/boneio/version.py +2 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/app.py +1 -1
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/binary_sensor.schema.json +1 -4
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/config.schema.json +2 -8
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/event.schema.json +1 -4
- {boneio-0.10.0.dev2 → boneio-0.10.1}/pyproject.toml +1 -1
- boneio-0.10.0.dev2/boneio/example_config/cover/binary_sensor.yaml +0 -1
- boneio-0.10.0.dev2/boneio/example_config/cover_mix/binary_sensor.yaml +0 -1
- boneio-0.10.0.dev2/boneio/version.py +0 -2
- {boneio-0.10.0.dev2 → boneio-0.10.1}/LICENSE +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/README.md +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.7/input.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.7/output_24_16.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.7/output_32_10.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.7/output_cover.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.7/output_cover_mix.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.8/input.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.8/output_24_16.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.8/output_32_10.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.8/output_cover.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/boards/0.8/output_cover_mix.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/bonecli.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/const.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/24x16/adc.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/24x16/binary_sensor.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/24x16/event.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/24x16/mqtt.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/24x16/output24x16A.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/32x10/adc.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/32x10/event.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/32x10/mqtt.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/32x10/output32x10A.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover/adc.yaml +0 -0
- {boneio-0.10.0.dev2/boneio/example_config/32x10 → boneio-0.10.1/boneio/example_config/cover}/binary_sensor.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover/cover.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover/event.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover/mqtt.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover/outputCover.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover_mix/adc.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover_mix/cover.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover_mix/event.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover_mix/mqtt.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/cover_mix/outputCoverMix.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/adc.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/all_binary_sensor.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/binary_sensor.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/binary_sensor_v_0_7.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/config_24_16.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/event_all.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/event_v_0_7.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/led32x4A.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/output24x16A.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/output24x16A_v0.3.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/output32x10A.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/output32x5A.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/fonts/danube__.ttf +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/group/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/group/output.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/async_updater.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/click_timer.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/events.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/exceptions.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/filter.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/gpio.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/gpiod.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/loader.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/logger.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/message_bus.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/mqtt.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/oled.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/onewire/W1ThermSensor.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/onewire/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/onewire/ds2482.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/onewire/onewire.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/pcf8575.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/queue.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/schema_converter.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/sensor/ina_219_smbus.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/state_manager.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/stats.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/timeperiod.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/helper/util.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/input/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/input/gpio.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/input/gpio_new.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/client.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/cwt.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/dts1964_3f.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/liquid-sensor.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/modbuscli.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/orno-or-we-517.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/pt100.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/r4dcb08.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/sensor.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/sht20.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/sht30.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/single_sensor.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/sofar.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/modbus/utils.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/models/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/models/files.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/models/logs.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/mqtt_client.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/oled.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/relay/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/relay/basic.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/relay/gpio.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/relay/mcp.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/relay/pca.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/relay/pcf.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/actions.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/actions_sensor.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/actions_switch.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/filters.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/filters_adc.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/id.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/temp_unit.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/schema/update_interval.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/adc.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/gpio.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/gpio_new.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/ina219.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/serial_number.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/temp/__init__.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/temp/dallas.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/temp/lm75.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/sensor/temp/mcp9808.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/abap-BrgZPUOV.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/apex-DyP6w7ZV.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/azcli-BaLxmfj-.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/bat-CFOPXBzS.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/bicep-BfEKNvv3.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/cameligo-BFG1Mk7z.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/clojure-DTECt2xU.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/codicon-DCmgc-ay.ttf +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/coffee-CDGzqUPQ.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/cpp-CLLBncYj.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/csharp-dUCx_-0o.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/csp-5Rap-vPy.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/css-D3h14YRZ.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/cssMode-DfMvbHS1.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/cypher-DrQuvNYM.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/dart-CFKIUWau.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/dockerfile-Zznr-cwX.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/ecl-Ce3n6wWz.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/editor.worker-D5ngByhL.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/elixir-deUWdS0T.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/flow9-i9-g7ZhI.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/freemarker2-COsx9Kxx.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/fsharp-CzKuDChf.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/go-Cphgjts3.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/graphql-Cg7bfA9N.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/handlebars-DLSBoYNU.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/hcl-0cvrggvQ.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/html-BMDnVWJE.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/htmlMode-BnEwlO6V.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/index-CY-57mMi.css +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/index-DF-wGFj8.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/ini-Drc7WvVn.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/java-B_fMsGYe.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/javascript-CiOEfIZl.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/json.worker-F0ZGA5Zk.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/jsonMode-YFANd4YE.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/julia-Bqgm2twL.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/kotlin-BSkB5QuD.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/less-BsTHnhdd.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/lexon-YWi4-JPR.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/liquid-zmwisPnH.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/lua-nf6ki56Z.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/m3-Cpb6xl2v.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/markdown-DSZPf7rp.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/mdx-DyTtu2Si.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/mips-B_c3zf-v.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/msdax-rUNN04Wq.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/mysql-DDwshQtU.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/objective-c-B5zXfXm9.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/pascal-CXOwvkN_.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/pascaligo-Bc-ZgV77.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/perl-CwNk8-XU.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/pgsql-tGk8EFnU.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/php-CpIb_Oan.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/pla-B03wrqEc.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/postiats-BKlk5iyT.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/powerquery-Bhzvs7bI.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/powershell-Dd3NCNK9.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/protobuf-COyEY5Pt.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/pug-BaJupSGV.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/python-pTO_Vlnu.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/qsharp-DXyYeYxl.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/r-CdQndTaG.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/razor-BFdtnr9-.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/redis-CVwtpugi.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/redshift-25W9uPmb.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/restructuredtext-DfzH4Xui.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/ruby-Cp1zYvxS.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/rust-D5C2fndG.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/sb-CDntyWJ8.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/scala-BoFRg7Ot.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/scheme-Bio4gycK.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/scss-4Ik7cdeQ.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/shell-CX-rkNHf.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/solidity-Tw7wswEv.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/sophia-C5WLch3f.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/sparql-DHaeiCBh.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/sql-CCSDG5nI.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/st-pnP8ivHi.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/swift-DwJ7jVG9.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/systemverilog-B9Xyijhd.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/tcl-DnHyzjbg.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/tsMode-znXRVK4x.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/twig-CPajHgWi.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/typescript-B0vdxoMh.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/typespec-D-MeaMDU.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/vb-DgyLZaXg.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/wgsl-BIv9DU6q.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/xml-x0PGJg-4.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/yaml-CZu_RZwp.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/assets/yaml.worker-C2uymlqn.js +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/boneio.svg +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/boneio_fav.svg +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/frontend-dist/index.html +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/adc.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/boneio.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/cover.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/dallas.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/ds2482.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/ina219.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/lm75.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/logger.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/mcp23017.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/mcp9808.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/modbus.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/modbus_sensors.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/mqtt.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/oled.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/output.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/output_group.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/pca9685.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/pcf8575.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/sensor.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/schema/web.schema.json +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/web_server.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/webui/websocket_manager.py +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/tests/32_5_config.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/tests/bandit.yaml +0 -0
- {boneio-0.10.0.dev2 → boneio-0.10.1}/tests/relay_32_5.py +0 -0
|
@@ -127,13 +127,7 @@ class Cover(BasicMqtt):
|
|
|
127
127
|
"""Current state of cover."""
|
|
128
128
|
return CLOSED if self._closed else OPEN
|
|
129
129
|
|
|
130
|
-
def stop(self) -> None:
|
|
131
|
-
"""Public Stop cover graceful."""
|
|
132
|
-
_LOGGER.info("Stopping cover %s.", self._id)
|
|
133
|
-
if self._current_operation != IDLE:
|
|
134
|
-
self._stop_cover(on_exit=False)
|
|
135
|
-
|
|
136
|
-
async def async_stop(self) -> None:
|
|
130
|
+
async def stop(self) -> None:
|
|
137
131
|
"""Public Stop cover graceful."""
|
|
138
132
|
_LOGGER.info("Stopping cover %s.", self._id)
|
|
139
133
|
if self._current_operation != IDLE:
|
|
@@ -291,14 +285,14 @@ class Cover(BasicMqtt):
|
|
|
291
285
|
async def toggle_open(self) -> None:
|
|
292
286
|
_LOGGER.debug("Toggle open cover %s from input.", self._id)
|
|
293
287
|
if self._current_operation != IDLE:
|
|
294
|
-
await self.
|
|
288
|
+
await self.stop()
|
|
295
289
|
else:
|
|
296
290
|
await self.open()
|
|
297
291
|
|
|
298
292
|
async def toggle_close(self) -> None:
|
|
299
293
|
_LOGGER.debug("Toggle close cover %s from input.", self._id)
|
|
300
294
|
if self._current_operation != IDLE:
|
|
301
|
-
await self.
|
|
295
|
+
await self.stop()
|
|
302
296
|
else:
|
|
303
297
|
await self.close()
|
|
304
298
|
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
## Default config for binary sensor entities.
|
|
2
|
+
# Binary sensor entities send on/off message to Home Assistant and run on pressed and released action.
|
|
3
|
+
# PINs are shared between event.yaml and binary_sensor.yaml.
|
|
4
|
+
# Don't duplicate PINs.
|
|
5
|
+
|
|
6
|
+
- id: IN_01
|
|
7
|
+
boneio_input: IN_01
|
|
8
|
+
actions:
|
|
9
|
+
pressed:
|
|
10
|
+
- action: output
|
|
11
|
+
pin: OUT_01
|
|
12
|
+
- id: IN_02
|
|
13
|
+
boneio_input: IN_02
|
|
14
|
+
actions:
|
|
15
|
+
pressed:
|
|
16
|
+
- action: output
|
|
17
|
+
pin: OUT_02
|
|
18
|
+
# - id: IN_03
|
|
19
|
+
# boneio_input: IN_03
|
|
20
|
+
# - id: IN_04
|
|
21
|
+
# boneio_input: IN_04
|
|
22
|
+
# - id: IN_05
|
|
23
|
+
# boneio_input: IN_05
|
|
24
|
+
# - id: IN_06
|
|
25
|
+
# boneio_input: IN_06
|
|
26
|
+
# - id: IN_07
|
|
27
|
+
# boneio_input: IN_07
|
|
28
|
+
# - id: IN_08
|
|
29
|
+
# boneio_input: IN_08
|
|
30
|
+
# - id: IN_09
|
|
31
|
+
# boneio_input: IN_09
|
|
32
|
+
# - id: IN_10
|
|
33
|
+
# boneio_input: IN_10
|
|
34
|
+
# - id: IN_11
|
|
35
|
+
# boneio_input: IN_11
|
|
36
|
+
# - id: IN_12
|
|
37
|
+
# boneio_input: IN_12
|
|
38
|
+
# - id: IN_13
|
|
39
|
+
# boneio_input: IN_13
|
|
40
|
+
# - id: IN_14
|
|
41
|
+
# boneio_input: IN_14
|
|
42
|
+
# - id: IN_15
|
|
43
|
+
# boneio_input: IN_15
|
|
44
|
+
# - id: IN_16
|
|
45
|
+
# boneio_input: IN_16
|
|
46
|
+
# - id: IN_17
|
|
47
|
+
# boneio_input: IN_17
|
|
48
|
+
# - id: IN_18
|
|
49
|
+
# boneio_input: IN_18
|
|
50
|
+
# - id: IN_19
|
|
51
|
+
# boneio_input: IN_19
|
|
52
|
+
# - id: IN_20
|
|
53
|
+
# boneio_input: IN_20
|
|
54
|
+
# - id: IN_21
|
|
55
|
+
# boneio_input: IN_21
|
|
56
|
+
# - id: IN_22
|
|
57
|
+
# boneio_input: IN_22
|
|
58
|
+
# - id: IN_23
|
|
59
|
+
# boneio_input: IN_23
|
|
60
|
+
# - id: IN_24
|
|
61
|
+
# boneio_input: IN_24
|
|
62
|
+
# - id: IN_25
|
|
63
|
+
# boneio_input: IN_25
|
|
64
|
+
# - id: IN_26
|
|
65
|
+
# boneio_input: IN_26
|
|
66
|
+
# - id: IN_27
|
|
67
|
+
# boneio_input: IN_27
|
|
68
|
+
# - id: IN_28
|
|
69
|
+
# boneio_input: IN_28
|
|
70
|
+
# - id: IN_29
|
|
71
|
+
# boneio_input: IN_29
|
|
72
|
+
# - id: IN_30
|
|
73
|
+
# boneio_input: IN_30
|
|
74
|
+
# - id: IN_31
|
|
75
|
+
# boneio_input: IN_31
|
|
76
|
+
# - id: IN_32
|
|
77
|
+
# boneio_input: IN_32
|
|
78
|
+
# - id: IN_33
|
|
79
|
+
# boneio_input: IN_33
|
|
80
|
+
# - id: IN_34
|
|
81
|
+
# boneio_input: IN_34
|
|
82
|
+
# - id: IN_35
|
|
83
|
+
# boneio_input: IN_35
|
|
84
|
+
# - id: IN_36
|
|
85
|
+
# boneio_input: IN_36
|
|
86
|
+
# - id: IN_37
|
|
87
|
+
# boneio_input: IN_37
|
|
88
|
+
# - id: IN_38
|
|
89
|
+
# boneio_input: IN_38
|
|
90
|
+
# - id: IN_39
|
|
91
|
+
# boneio_input: IN_39
|
|
92
|
+
# - id: IN_40
|
|
93
|
+
# boneio_input: IN_40
|
|
94
|
+
# - id: IN_41
|
|
95
|
+
# boneio_input: IN_41
|
|
96
|
+
# - id: IN_42
|
|
97
|
+
# boneio_input: IN_42
|
|
98
|
+
# - id: IN_43
|
|
99
|
+
# boneio_input: IN_43
|
|
100
|
+
# - id: IN_44
|
|
101
|
+
# boneio_input: IN_44
|
|
102
|
+
# - id: IN_45
|
|
103
|
+
# boneio_input: IN_45
|
|
104
|
+
# - id: IN_46
|
|
105
|
+
# boneio_input: IN_46
|
|
106
|
+
# - id: IN_47
|
|
107
|
+
# boneio_input: IN_47
|
|
108
|
+
# - id: IN_48
|
|
109
|
+
# boneio_input: IN_48
|
|
110
|
+
# - id: IN_49
|
|
111
|
+
# boneio_input: IN_49
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../cover/binary_sensor.yaml
|
|
@@ -24,6 +24,7 @@ class ConfigHelper:
|
|
|
24
24
|
self,
|
|
25
25
|
topic_prefix: str,
|
|
26
26
|
name: str = BONEIO,
|
|
27
|
+
device_type: str = "boneIO Black",
|
|
27
28
|
ha_discovery: bool = True,
|
|
28
29
|
ha_discovery_prefix: str = HOMEASSISTANT,
|
|
29
30
|
):
|
|
@@ -31,6 +32,7 @@ class ConfigHelper:
|
|
|
31
32
|
self._topic_prefix = topic_prefix if topic_prefix else name
|
|
32
33
|
self._ha_discovery = ha_discovery
|
|
33
34
|
self._ha_discovery_prefix = ha_discovery_prefix
|
|
35
|
+
self._device_type = device_type
|
|
34
36
|
self._fetch_old_discovery = None
|
|
35
37
|
self._autodiscovery_messages = {
|
|
36
38
|
SWITCH: {},
|
|
@@ -59,6 +61,10 @@ class ConfigHelper:
|
|
|
59
61
|
def ha_discovery_prefix(self) -> str:
|
|
60
62
|
return self._ha_discovery_prefix
|
|
61
63
|
|
|
64
|
+
@property
|
|
65
|
+
def device_type(self) -> str:
|
|
66
|
+
return self._device_type
|
|
67
|
+
|
|
62
68
|
@property
|
|
63
69
|
def cmd_topic_prefix(self) -> str:
|
|
64
70
|
return f"{self.topic_prefix}/cmd/"
|
|
@@ -55,7 +55,7 @@ def ha_light_availabilty_message(id: str, topic: str = "boneIO", device_type: st
|
|
|
55
55
|
return msg
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
def ha_led_availabilty_message(id: str, topic: str = "boneIO",
|
|
58
|
+
def ha_led_availabilty_message(id: str, topic: str = "boneIO", **kwargs):
|
|
59
59
|
"""Create LED availability topic for HA."""
|
|
60
60
|
msg = ha_availabilty_message(device_type=RELAY, topic=topic, id=id, **kwargs)
|
|
61
61
|
msg["command_topic"] = f"{topic}/cmd/{RELAY}/{id}/set"
|
|
@@ -110,7 +110,7 @@ def ha_sensor_availabilty_message(unit_of_measurement: str = None, **kwargs):
|
|
|
110
110
|
return msg
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
def ha_binary_sensor_availabilty_message(id: str, name: str, device_class: str, topic: str = "boneIO"):
|
|
113
|
+
def ha_binary_sensor_availabilty_message(id: str, name: str, device_class: str, topic: str = "boneIO", model: str = "boneIO Relay Board"):
|
|
114
114
|
"""Create availability topic for HA."""
|
|
115
115
|
kwargs = {"device_class": device_class} if device_class else {}
|
|
116
116
|
return {
|
|
@@ -119,7 +119,7 @@ def ha_binary_sensor_availabilty_message(id: str, name: str, device_class: str,
|
|
|
119
119
|
"device": {
|
|
120
120
|
"identifiers": [topic],
|
|
121
121
|
"manufacturer": "boneIO",
|
|
122
|
-
"model":
|
|
122
|
+
"model": model,
|
|
123
123
|
"name": f"boneIO {topic}",
|
|
124
124
|
"sw_version": __version__,
|
|
125
125
|
},
|
|
@@ -132,7 +132,7 @@ def ha_binary_sensor_availabilty_message(id: str, name: str, device_class: str,
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
def ha_sensor_ina_availabilty_message(
|
|
135
|
-
id: str, name: str, topic: str = "boneIO", **kwargs
|
|
135
|
+
id: str, name: str, topic: str = "boneIO", model: str = "boneIO Relay Board", **kwargs
|
|
136
136
|
):
|
|
137
137
|
"""Create availability topic for HA."""
|
|
138
138
|
return {
|
|
@@ -140,7 +140,7 @@ def ha_sensor_ina_availabilty_message(
|
|
|
140
140
|
"device": {
|
|
141
141
|
"identifiers": [topic],
|
|
142
142
|
"manufacturer": "boneIO",
|
|
143
|
-
"model":
|
|
143
|
+
"model": model,
|
|
144
144
|
"name": f"boneIO {topic}",
|
|
145
145
|
"sw_version": __version__,
|
|
146
146
|
},
|
|
@@ -154,7 +154,7 @@ def ha_sensor_ina_availabilty_message(
|
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
def ha_sensor_temp_availabilty_message(
|
|
157
|
-
id: str, name: str, topic: str = "boneIO", **kwargs
|
|
157
|
+
id: str, name: str, topic: str = "boneIO", model: str = "boneIO Relay Board", **kwargs
|
|
158
158
|
):
|
|
159
159
|
"""Create availability topic for HA."""
|
|
160
160
|
return {
|
|
@@ -162,7 +162,7 @@ def ha_sensor_temp_availabilty_message(
|
|
|
162
162
|
"device": {
|
|
163
163
|
"identifiers": [topic],
|
|
164
164
|
"manufacturer": "boneIO",
|
|
165
|
-
"model":
|
|
165
|
+
"model": model,
|
|
166
166
|
"name": f"boneIO {topic}",
|
|
167
167
|
"sw_version": __version__,
|
|
168
168
|
},
|
|
@@ -204,12 +204,12 @@ def modbus_sensor_availabilty_message(
|
|
|
204
204
|
|
|
205
205
|
|
|
206
206
|
def ha_cover_availabilty_message(
|
|
207
|
-
id: str, name: str, device_class: str, topic: str = "boneIO"
|
|
207
|
+
id: str, name: str, device_class: str, topic: str = "boneIO", model: str = "boneIO Relay Board"
|
|
208
208
|
):
|
|
209
209
|
"""Create Cover availability topic for HA."""
|
|
210
210
|
kwargs = {"device_class": device_class} if device_class else {}
|
|
211
211
|
msg = ha_availabilty_message(
|
|
212
|
-
device_type=COVER, topic=topic, id=id, name=name, **kwargs
|
|
212
|
+
device_type=COVER, topic=topic, id=id, name=name, model=model, **kwargs
|
|
213
213
|
)
|
|
214
214
|
|
|
215
215
|
return {
|
|
@@ -269,7 +269,6 @@ def merge_board_config(config: dict) -> dict:
|
|
|
269
269
|
config["output"].append(output)
|
|
270
270
|
if "output" in config:
|
|
271
271
|
output_mapping = board_config.get("output_mapping", {})
|
|
272
|
-
print(output_mapping)
|
|
273
272
|
for output in config["output"]:
|
|
274
273
|
if "boneio_output" in output:
|
|
275
274
|
boneio_output = output["boneio_output"].lower()
|
|
@@ -49,6 +49,7 @@ from boneio.const import (
|
|
|
49
49
|
cover_actions,
|
|
50
50
|
relay_actions,
|
|
51
51
|
)
|
|
52
|
+
from boneio.cover import Cover
|
|
52
53
|
from boneio.helper import (
|
|
53
54
|
GPIOInputException,
|
|
54
55
|
HostData,
|
|
@@ -120,7 +121,7 @@ class Manager:
|
|
|
120
121
|
|
|
121
122
|
self._loop = asyncio.get_event_loop()
|
|
122
123
|
|
|
123
|
-
self._config_helper = config_helper
|
|
124
|
+
self._config_helper: ConfigHelper = config_helper
|
|
124
125
|
self._host_data = None
|
|
125
126
|
self._config_file_path = config_file_path
|
|
126
127
|
self._state_manager = state_manager
|
|
@@ -141,7 +142,7 @@ class Manager:
|
|
|
141
142
|
self._configured_output_groups = {}
|
|
142
143
|
self._oled = None
|
|
143
144
|
self._tasks: List[asyncio.Task] = []
|
|
144
|
-
self._covers = {}
|
|
145
|
+
self._covers: dict[str, Cover] = {}
|
|
145
146
|
self._temp_sensors: List[TempSensor] = []
|
|
146
147
|
self._ina219_sensors = []
|
|
147
148
|
self._modbus_sensors = {}
|
|
@@ -938,7 +939,7 @@ class Manager:
|
|
|
938
939
|
return
|
|
939
940
|
topic_prefix = topic_prefix or self._config_helper.topic_prefix
|
|
940
941
|
payload = availability_msg_func(
|
|
941
|
-
topic=topic_prefix, id=id, name=name, **kwargs
|
|
942
|
+
topic=topic_prefix, id=id, name=name, model=self._config_helper.device_type.title(), **kwargs
|
|
942
943
|
)
|
|
943
944
|
topic = f"{self._config_helper.ha_discovery_prefix}/{ha_type}/{topic_prefix}/{id}/config"
|
|
944
945
|
_LOGGER.debug("Sending HA discovery for %s entity, %s.", ha_type, name)
|
|
@@ -96,6 +96,7 @@ async def async_run(
|
|
|
96
96
|
main_config = config.get(BONEIO, {})
|
|
97
97
|
_config_helper = ConfigHelper(
|
|
98
98
|
name=main_config.get(NAME, BONEIO),
|
|
99
|
+
device_type=main_config.get("device_type", "boneIO Black"),
|
|
99
100
|
topic_prefix=config.get(MQTT, {}).get(TOPIC_PREFIX, None),
|
|
100
101
|
ha_discovery=config.get(MQTT, {}).get(HA_DISCOVERY, {}).get(ENABLED, False),
|
|
101
102
|
ha_discovery_prefix=config.get(MQTT, {}).get(HA_DISCOVERY, {}).get(TOPIC_PREFIX, "homeassistant"),
|
|
@@ -558,7 +558,7 @@ binary_sensor:
|
|
|
558
558
|
label: Id to use in HA if needed. Default to pin number.
|
|
559
559
|
pin:
|
|
560
560
|
type: string
|
|
561
|
-
required:
|
|
561
|
+
required: False
|
|
562
562
|
meta:
|
|
563
563
|
label: PIN to use.
|
|
564
564
|
gpio_mode:
|
|
@@ -673,7 +673,7 @@ event:
|
|
|
673
673
|
label: Id to use in HA if needed. Default to pin number.
|
|
674
674
|
pin:
|
|
675
675
|
type: string
|
|
676
|
-
required:
|
|
676
|
+
required: False
|
|
677
677
|
meta:
|
|
678
678
|
label: PIN to use.
|
|
679
679
|
gpio_mode:
|
|
@@ -492,7 +492,7 @@ async def cover_action(cover_id: str, action_data: CoverAction, manager: Manager
|
|
|
492
492
|
elif action == "close":
|
|
493
493
|
await cover.close()
|
|
494
494
|
elif action == "stop":
|
|
495
|
-
await cover.
|
|
495
|
+
await cover.stop()
|
|
496
496
|
|
|
497
497
|
return {"status": "success"}
|
|
498
498
|
|
|
@@ -391,10 +391,7 @@
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
}
|
|
395
|
-
"required": [
|
|
396
|
-
"pin"
|
|
397
|
-
]
|
|
394
|
+
}
|
|
398
395
|
},
|
|
399
396
|
"description": "https://boneio.eu/docs/black/configuration/binary \n GPIO binary section of boneIO Black. It enables binary sensors in HA. It detects press and release states. It can run action based on states. It always send message to MQTT broker of invoked state.",
|
|
400
397
|
"title": "Binary sensor"
|
|
@@ -1521,10 +1521,7 @@
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
}
|
|
1525
|
-
"required": [
|
|
1526
|
-
"pin"
|
|
1527
|
-
]
|
|
1524
|
+
}
|
|
1528
1525
|
},
|
|
1529
1526
|
"description": "https://boneio.eu/docs/black/configuration/binary \n GPIO binary section of boneIO Black. It enables binary sensors in HA. It detects press and release states. It can run action based on states. It always send message to MQTT broker of invoked state.",
|
|
1530
1527
|
"title": "Binary sensor"
|
|
@@ -1960,10 +1957,7 @@
|
|
|
1960
1957
|
}
|
|
1961
1958
|
}
|
|
1962
1959
|
}
|
|
1963
|
-
}
|
|
1964
|
-
"required": [
|
|
1965
|
-
"pin"
|
|
1966
|
-
]
|
|
1960
|
+
}
|
|
1967
1961
|
},
|
|
1968
1962
|
"description": "https://boneio.eu/docs/black/configuration/event \n GPIO event entity section of boneIO Black. It enables event entities in HA. It detects single, double and long click. It can run action based on states. It always send message to MQTT broker of invoked state.",
|
|
1969
1963
|
"title": "Event"
|
|
@@ -433,10 +433,7 @@
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
}
|
|
437
|
-
"required": [
|
|
438
|
-
"pin"
|
|
439
|
-
]
|
|
436
|
+
}
|
|
440
437
|
},
|
|
441
438
|
"description": "https://boneio.eu/docs/black/configuration/event \n GPIO event entity section of boneIO Black. It enables event entities in HA. It detects single, double and long click. It can run action based on states. It always send message to MQTT broker of invoked state.",
|
|
442
439
|
"title": "Event"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
../32x10/binary_sensor.yaml
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
../32x10/binary_sensor.yaml
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/all_binary_sensor.yaml
RENAMED
|
File without changes
|
{boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/binary_sensor.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/config_24_16.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/event_v_0_7.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/output24x16A.yaml
RENAMED
|
File without changes
|
{boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/output24x16A_v0.3.yaml
RENAMED
|
File without changes
|
{boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/output32x10A.yaml
RENAMED
|
File without changes
|
{boneio-0.10.0.dev2 → boneio-0.10.1}/boneio/example_config/different_configs/output32x5A.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|