Coder Social home page Coder Social logo

ha-mysmartblinds's Introduction

My Smart Blinds component for Home Assistant

hacs_badge

A custom component to support controlling My Smart Blinds in Home Assistant using the My Smart Blinds Smart Bridge.

Adapted and updated from original source: https://gist.github.com/ianlevesque/f97e3a9bfafc72cffcb4cec5059444cc

NOTE: This repository / project is highly unsupported and unlikely to get updates or bug fixes. Use at your own risk.

Installation

  • The easiest way is to install it with HACS. First install HACS if you don't have it yet. After installation you can add this repository as a custom component in the HACS store under integrations.

  • Alternatively, you can install it manually. Just copy paste the content of the custom_components/mysmartblinds folder in your config/custom_components directory. As example, you will get the cover.py file in the following path: /config/custom_components/mysmartblinds/cover.py.

Configuration

key type description
platform (Required) string mysmartblinds
username (Required) string Username for the MySmartBlinds application.
password (Required) string Password for the MySmartBlinds application.
close_position int Tilt position to use when closing blinds. 0 - 100
invert_open_close boolean Invert the open/close values. Can be used to close the blinds with the slates in the opposite direction.
include_rooms boolean NOTE: This feature doesn't work correctly. Always set it to False.

As mentioned above, the include_rooms should be set to False. It was in the original source and I've never seen it work, but haven't removed it either.

Example

Default configuration with credentials from a secret.yaml file:

cover:
  - platform: mysmartblinds
    username: !secret mysmartblinds_username
    password: !secret mysmartblinds_password
    include_rooms: False
    open_position: 50

Tilt the other way to close:

cover:
  - platform: mysmartblinds
    username: !secret mysmartblinds_username
    password: !secret mysmartblinds_password
    invert_open_close: True

Troubleshooting

To turn on debug logging, modify your configuration.yaml and add the following:

logger:
  logs:
    custom_components.mysmartblinds: debug

ha-mysmartblinds's People

Contributors

docbliny avatar redsgt avatar

Stargazers

 avatar  avatar Ben Balter avatar Liam Hildebrand avatar Rob Anderson avatar C Boles avatar Yuri Dogandjiev avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

redsgt deftdawg

ha-mysmartblinds's Issues

Installation instructions do not make sense

I have installed this github as a custom repo in HACS, when I go to add a device or integration in the HA webUI it responds with

This device cannot be added from the UI
You can add this device by adding it to your 'configuration.yaml'. See the documentation for more information.

I do have a file in /root/config/custom_components/mysmartblinds/secret.yaml along with the files that were installed as part of the HACS install and it has the correct username and password for mySmartBlinds

So... how do I get the mySmartBlinds devices to show up in HA?

SUPPORT_... deprecation warning on startup

Logger: homeassistant.components.cover
Source: helpers/deprecation.py:205
Integration: Cover (documentation, issues)
First occurred: 1:49:28 PM (10 occurrences)
Last logged: 1:49:28 PM

SUPPORT_CLOSE was used from mysmartblinds, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.CLOSE instead, please report it to the author of the 'mysmartblinds' custom integration
SUPPORT_CLOSE_TILT was used from mysmartblinds, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.CLOSE_TILT instead, please report it to the author of the 'mysmartblinds' custom integration
SUPPORT_OPEN was used from mysmartblinds, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.OPEN instead, please report it to the author of the 'mysmartblinds' custom integration
SUPPORT_OPEN_TILT was used from mysmartblinds, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.OPEN_TILT instead, please report it to the author of the 'mysmartblinds' custom integration
SUPPORT_SET_TILT_POSITION was used from mysmartblinds, this is a deprecated constant which will be removed in HA Core 2025.1. Use CoverEntityFeature.SET_TILT_POSITION instead, please report it to the author of the 'mysmartblinds' custom integration

Unavailable

Installed via HACS and I can report that I am seeing my blinds showing up as entities, but I cannot control them: "Unavailable"

Trouble making the Mysmartblinds Connection

Hello,

I am trying to load your mysmartblinds driver for HA. I have a mysmartblinds hub, I installed from HACs, confirmed the files are in the custom components section, and altered the secrets.yaml with my mysmartblinds login info. Whenever I try to load it, I get an error:

Logger: homeassistant.setup
Source: setup.py:153
First occurred: 6:01:47 PM (1 occurrences)
Last logged: 6:01:47 PM

Setup failed for mysmartblinds: No setup or config entry setup function defined.

I know this is something stupid that I'm not doing. I've read the readme multiple times and it either seems like it should be working or I'm missing a step. Do you know what I'm missing?

Edit: while searching for something else, I accidentally found the entities for my blinds in HA. I could open the controls but they said unavailable. So this tells me for sure I have a connection but I have not been able to overcome the mysmartblinds setup error in the log to complete the setup.

close_position throws an error when trying to use it

close_position throws an error when trying to use it in configuration.yml.

When checking the config prior to yaml reload: "Invalid config for 'mysmartblinds' from integration 'cover' at configuration.yaml, line 51: 'close_position' is an invalid option for 'cover.mysmartblinds', check: close_position"

If I remove it everything works correctly. (Minus being able to set the close position)

Mysmartblinds failing after server update

Hello,

Mysmartblinds servers have been down for a week. The connection has been re-established via the native app but I think the API info changed. I'm getting errors in HA Error logging in or listing devices 400: OIDC conformant clients cannot use /oauth/ro. I removed the integration entirely and readded it just in case and all the results are the same so my guess is this needs to be pointed to a different API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.