Skip to content

KrzysztofZurek1973/webthing-4-inputs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IoT Thing: 4 Inputs with counter

Introduction

This is web connected 4 inputs module.

Dependencies

Requires:

Features

4 inputs webThing has @type MultiLevelSwitch and following properties:

  • Input-1 up to Input-4, indicates if input is in high (open) or low (closed) state, @type: OpenProperty
  • counter, shows how many times inputs has been changed, max = 1000, @type: LevelProperty
  • ON-OFF, ON: at least one input 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 -> Inputs config (see iot_web_thing_example).

Default input GPIOs:

  • INPUT-1: GPIO32
  • INPUT-2: GPIO33
  • INPUT-3: GPIO25
  • INPUT-4: GPIO26

Gateway web interface

GUI

To trigger an action in another webThing (e.g. set output-1 in 4-output 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