Skip to content

KrzysztofZurek1973/webthing-4-outputs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Links

License

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

Authors

  • Krzysztof Zurek - kz