Skip to content

Latest commit

 

History

History
103 lines (83 loc) · 2.4 KB

README.md

File metadata and controls

103 lines (83 loc) · 2.4 KB

   


Table of Contents

description

This module provides servo outputs that can be controlled.

pin settings

  • pin count
  • pin
  • minimal angle
  • neutral angle
  • maximal angle
  • min value ( scaled to min angle )
  • max value ( scaled to max angle )
  • detach time
  • a checkbox which enbaled that the servo go to neutral position on start
  • a checkbox which enbaled that the servo go to neutral position after a movment ( detach time must be set )

mqtt msg settings

  • a checkbox which activates the status sending via mqtt. The interval is activated and set in the mqtt settings.

web interface

servo interface

mqtt interface

mqtt stat

{
  "id": "defaultIoT_d1fd28",
  "ip": "192.168.2.26",
  "time": "2023-04-05 19:48.15",
  "uptime": 211,
  "version": "2023033001; firmware: Apr  5 2023 19:27:16; GCC-Version: 5.2.0",
  "reset_reason": "ESP_RST_POWERON",
  "reset_time": "1970-01-01 00:00.00",
  "interval": 5,
  "servo": {
    "count": 1,
    "pin": [
      {
        "pin": 17,
        "current_angle": 0,
        "current_value": 90,
        "state": false
      }
    ]
  }
}

mqtt cmnd

set servo to angle 90°
{"servo_channel":0,"angle":90}

set servo to scaled value 45
{"servo_channel":0,"value":45}

trigger servo to min angle and if detach is enabled move after detach time to neutral
{"servo_channel":0,"min":true}

trigger servo to max angle and if detach is enabled move after detach time to neutral
{"servo_channel":0,"max":true}

mqtt tele

{
  "id": "sensor_f62ca8",
  "ip": "192.168.2.85",
  "time": "2023-04-03 11:23.55",
  "uptime": 1,
  "reset_reason": "ESP_RST_SW",
  "reset_time": "2023-04-03 11:23.54",
  "mac": "24:62:AB:F6:2C:A8",
  "channel": 10,
  "ssid": "karlshorst_BGN",
  "rssi": -60
}