Skip to content

Commit

Permalink
add support for JINVOO VALVE SM-AW713 (xoseperez#1774)
Browse files Browse the repository at this point in the history
* add support for JINVOO VALVE SM-AW713

* add support for JINVOO VALVE SM-AW713

* add support for JINVOO VALVE SM-AW713

* add support for JINVOO VALVE SM-AW713

Type: Other
Board: Jinvoo SM-AW713
Build flag: JINVOO_VALVE_SM_AW713
Description: motorized valve

* fix typo
  • Loading branch information
reaper7 authored and mcspr committed Jun 23, 2019
1 parent 14b796b commit bf3caf3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions code/espurna/config/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -3781,6 +3781,36 @@
#define SSDP_SUPPORT 1
#define RF_SUPPORT 1

#elif defined(JINVOO_VALVE_SM_AW713)

// Reflashing from original Tuya firmware
// to thirdparty firmware like espurna by:
// https://github.com/ct-Open-Source/tuya-convert

// Info
#define MANUFACTURER "JINVOO"
#define DEVICE "VALVE_SM_AW713"

// Buttons
#define BUTTON1_PIN 13
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY 1

// Relays
#define RELAY1_PIN 12
#define RELAY1_TYPE RELAY_TYPE_NORMAL

// LED
#define LED1_PIN 5 // 5 red led
#define LED1_PIN_INVERSE 0
#define LED1_RELAY 1
#define LED1_MODE LED_MODE_RELAY

#define LED2_PIN 4 // 4 blue led
#define LED2_PIN_INVERSE 0
#define LED2_RELAY 1
#define LED2_MODE LED_MODE_FINDME_WIFI

#endif

// -----------------------------------------------------------------------------
Expand Down
Binary file added images/devices/jinvoo-valve-sm-aw713.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bf3caf3

Please sign in to comment.