项目作者: KrzysztofZurek1973

项目描述 :
4-outputs webThing with counter, for ESP32.
高级语言: C
项目地址: git://github.com/KrzysztofZurek1973/webthing-4-outputs.git
创建时间: 2021-04-21T14:07:30Z
项目社区:https://github.com/KrzysztofZurek1973/webthing-4-outputs

开源协议:MIT License

下载


IoT Thing: 4 outputs with counter

Introduction

This is web connected 4 outputs module.

Dependencies

Requires:

Features

4 outputs webThing has @type MultiLevelSwitch and the following properties:

  • Output-1 up to Output-4, allows to set output high (checked) or low (not checked), @type: BooleanProperty
  • counter, shows how many times outputs has been changed, max = 1000, @type: LevelProperty
  • ON-OFF, ON: at least one output is high, @type: OnOffProperty

Documentation

How to start the node see iot_web_thing_example.

Configuration

GPIO number can be set in idf.py menuconfig -> Outputs config (see iot_web_thing_example).

Default output GPIOs:

  • OUTPUT-1: GPIO18
  • OUTPUT-2: GPIO19
  • OUTPUT-3: GPIO21
  • OUTPUT-4: GPIO22

Gateway web interface

GUI

To trigger an action in another webThing (e.g. set output-1 in 4-outputs high when input-1 drops low) use Gateway rule:

Rule

Source Code

The source is available from GitHub.

License

The code in this project is licensed under the MIT license - see LICENSE for details.

Authors

  • Krzysztof Zurek - kz