Custom Component: Neo Smart Blinds Cover - modified and updated

As mentioned, it’s in the const.py file.

Exact file path “custom_components/neosmartblinds/const.py” line 24.

Thanks but my const.py file is blank at line 24. Refer below and you will see no refernece to the field that e are after. Am I missing something here??

DATA_NEOSMARTBLINDS = “neosmartblinds”

CONF_DEVICE = “blind_code”
CONF_CLOSE_TIME = “close_time”
CONF_ID = “hub_id”
CONF_PROTOCOL = “protocol”
CONF_PORT = “port”
CONF_RAIL = “rail”

CMD_UP = “up”
CMD_DOWN = “dn”
CMD_MICRO_UP = “mu”
CMD_MICRO_DOWN = “md”
CMD_STOP = “sp”
CMD_FAV = “gp”
CMD_FAV_1 = “i1”
CMD_FAV_2 = “i2”

Commands below are not available through home assistant as of yet.

CMD_SET_FAV = “pp”
CMD_REVERSE = “rv”
CMD_CONFIRM = “sc”
CMD_LIMIT = “ld”
###################################################### MY LINE 24 is here

Below are use for Top Down / Bottom Up blinds

used for “rail” 2 which is the top of the blind.

CMD_UP2 = “u2”
CMD_DOWN2 = “d2”
CMD_MICRO_UP2 = “o2”
CMD_MICRO_DOWN2 = “c2”

Used for “rail” 3 which is both top and bottom moving at once

API doc says it should move both rails up or down

CMD_UP3 = “u3”
CMD_DOWN3 = “d3”

commands for fully opening and closing a top-down/bottom-up blind

CMD_TDBU_OPEN = “op”
CMD_TDBU_CLOSE = “cl”

I see. It sounds like you may be running an old version. Make sure you’re running the latest from the github repo.

Correct, old version. Updated and made the change, now the blinds are described as undefined within HA. Rolling back to previous version from backup. Spent too much time on this and will put up with the intermittent issue I have been having.
Thanks for your help.

Whilst increasing the delay from 500ms to 700ms seems to have alleviated the issue a bit, it hasn’t resolved it 100% (I used to get this issue more frequently).

Rather than increasing the delay even more, I decided to add a cheap smart switch to restart the Neo Hub whenever this issue occurs.

Here’s the automation I’m using to restart the device:

alias: Neosmart blinds log monitoring
description: ""
trigger:
  - platform: event
    event_type: system_log_event
    event_data:
      level: ERROR
      name: custom_components.neosmartblinds.neo_smart_blind
      message:
        - Server disconnected
condition:
  - condition: template
    value_template: "\"{{ 'Connection reset' in trigger.event.data.message[0] }}\""
    enabled: false
action:
  - service: persistent_notification.create
    data:
      message: NeoSmartBlinds rejecting connections - Restarting device.
      title: NeoSmartBlinds
  - service: switch.turn_off
    data: {}
    target:
      entity_id: switch.smart_plug_1
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: switch.turn_on
    data: {}
    target:
      entity_id: switch.smart_plug_1
mode: single

NOTE - need to enable event generation for system logs by inserting this in the config.yaml:

system_log:
  fire_event: true
1 Like

hi all, does anyone have issues with your HA dashboard sometimes not opening all blinds in a parent group?

Every few days I find when tapping the toggle or up/down button it’ll not open any of the blinds or sometimes it’ll just open one of the two? checked my logs and doesnt seem to be any issues there. I’ll turn off/on my neosmartblinds hub and that mostly fixes it, but still spotty on executing the action. Its not just the latest version, it’s always seeming to happen. Anyone else finding this or have any suggestions?

FWIW this is my manifest file:

{
  "domain": "neosmartblinds",
  "documentation": "https://github.com/mtgeekman/Home_Assistant_NeoSmartBlinds/blob/3947de395857771594c2e27f9a4e2b6fc024988b/README.md",
  "issue_tracker": "https://github.com/mtgeekman/Home_Assistant_NeoSmartBlinds/issues",
  "codeowners": ["4n0nD3v3l0p3r","mtgeekman","clara-j","gee-jay-bee"],
  "name": "NeoSmartBlinds",
  "version": "2.2.4",
  "requirements": ["requests==2.31.0"]
}

and my config.yaml extract here too for one of my first entry (redacted accordingly):

cover:
  - platform: neosmartblinds
    name: blockoutliving
    host: 192.168.XX.XX
    hub_id: cXXXXXXXXXXXXKQ
    protocol: tcp
    port: 8839
    blind_code: 119.XXX-XX
    close_time: 10
    rail: 1
    percent_support: 1
    motor_code: wt
    start_position: 0
    parent_group: 119.XXX-XX

I should also add the Neo blinds app on my phone works perfectly all the time too when I have no/weird responses via HA

Thanks so much for your efforts with this! I was wondering is there any way to disable the tilt function? My blinds only go up and down but the device is exposing tilt

Two questions here - one small, one big. :slight_smile:

Question #1: I have blinds with an AOK motor that I use the NeoSmart iOS to control. Is this integration for me?

Question #2: Anyone want to give me a hint on how I install this integration? I was going to roll up my sleeves and figure out how the hell to make my own integration…until I saw this thread. I’m hoping now I don’t need to roll them up so far.

In theory it should work for you with that motor code. you can install it via HACS using the git hub url.

Thank you! But could you spell a little of that out? HACS I see is the Home Assistant Community Store…I get the gist. A store, though I’m not entirely sure what exactly it is. It seems like it’s a piece of software I download?

I currently use a Sonoff RF Bridge within my Home Assistant environment and would really prefer not to add another device and spend $400. Can I control my my blinds using this Sonoff RF Bridge?

I also attempted to get the Sonoff RF Bridge to learn the signals from the remote, but this failed. I am assuming there is either a rolling code or some weird RF instructions within the signal.

Any assistance / links would be appreciated.
Thank you

1 Like

trying to figure that out, I wonder if neo smart would be willing to help?

Hi,

By any cchance, does anybody know if there’s a way to control a shade equiped with the Neo Blue Link bluetooth dongle directly from HA?

Thanks!

Hi. I have just bought the Neo Hub and installed the custom config. It seems to be working fine for a blind which is a room of it’s own. But for my 2 deck blinds which are in a room together, clicking open opens 1 blind and clicking close closes both blinds. Is that expected behaviour (I assume not but worth checking). Alternanitely I could put them all ina differnet room I guess and try that and control the rooms vis HA.

Yeah - looks like the same types of issues I am having. This is my first HA custom compenent so could be partly user error. But when it errors, I find the app stops working too and I have to reboot the Neo box. I have got it working on a blind which is only in one room so not sure if 2 blinds in a room is the issue. I can;t see an easy way to move an existing blind into a new room of it’s own in the app. I see you are using tcp - I am using http - haven’t played with different protocols but assumed that wasn’t the issue.

Actualy - update to that: The single blind in a single room works fine for a couple of up and down motions and then a NeoBox reboot is required.