Skip to content

Yernike/shelly-scripts

Repository files navigation

Scripts of Shelly Gen2 Devices

Cover Security Stop

This script allows to stop a 2PM shelly in cover mode when the digital input of Addon Plus is closed

Devices

  • Shelly Plus 2PM (Control the cover)
  • Shelly Plus Addon (Input the sensor)

Instructions:

Connect the magnetic sensor to Digital and GND, the sensor can be normally closed, otherwise you can "Enable invert input" in Digital Input Settings:

You need to Add Peripheral as Digital Input:

Power Regulator Shelly EM and Shelly UNI

This script reads the power of ShellyEM and ShellyUni Acts on the push buttons to decrease or increase an external power regulator

Devices

  • Shelly Plus (Any Gen2) (Run script)
  • Shelly EM (Measure the current consumption)
  • Shelly Plus Addon (Control the external regulator)

Instructions:

You need to to connect the OUT1 and OUT2 of Shelly UNI to Increase and Decrease buttons of external power regulator:

Then you have to install Shelly EM in your main phase wire

Script Configuration
Configure the ShellyEM IP and Channel (0 or 1) in script configuration Configure the Shelly Uni IP and Channels of increase and decrease Configure the Max Power in which the regulator will decrease

Thermostat

This script is a thermostat cool or heat mode, it turns the switch on or off based on temperature, setting a temperature change limit called hysteresis

Devices:

  • Shelly Plus 1 or Shelly Plus 1PM,
  • Shelly Plus Addon
  • Sensor DS18B20

Instructions:

Connect the DS18B20 to VCC, DATA, GND in Plus Addon

You need to Add Peripheral as Temperature (DS18B20)

Script Configuration

  • Config temperature = temperature that you want to reach
  • Config hysteresis = threshold of temperature change to enable or disable switch
  • Config mode = (H)Heat or (C)Cool.
    • In Cool Mode (C) the switch is activated when the temperature is higher than Config Temperature + Config Threshold and the switch is disabled when temperature is less or equal than Config Temperature
    • In Heat Mode (H) the switch is activated when the temperature is less than Config Temperature + Config Threshold and the switch is disabled when temperature is higher or equal than Config Temperature Config sensorId = is the sensor id provided by the device when adding the peripheral ex: the name of Peripheral = Temperature (100)

Autonomous BLU Button1

This script allow register up to 45x BLU Button1 to use autonomous open door. When you push the registered BLU Button1, the relay turn on and turn off in 1 second.

Devices:

  • Shelly Plus 1
  • Shelly BLU Button 1

Instructions:

  • Plug the Shelly Plus

  • Install and run this script

  • Register BLU Button1 When you plug your Shelly Plus, you have 10 seconds to register and unregister BLU Buttons, this is recorder in internal memory.

  • Push one time BLU Button1 until 10s you register the button

  • Push twice BLU Button1 until 10s you unregister the button

About

Scripts to Shelly Gen2 Devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published