Smart Friends Bridge Addon

Now works as expected!
Thank you for your fast support!

Great, I was really hoping I wouldn’t have to change more to get it working for you.

Hi,
i already open a Issue.
My Schellenberg covers are not working anymore since i updated to 3.9.
But also restoring to 3.8 doesn´t help.
Maybe someone can help.

But as i found now you have 2 projects for Smart Friends
1.) hassio-addon
2.) smartfriends-bridge
i don´t know the difference, and now i am not shure which one i am using.
I installed it as an Add-On so i think that it is the 1.)
But the issue i wrote you will find under 2.).

So i hope that you can help me.

Here is the Add-On Log

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
info: SmartFriends.Mqtt.MqttClient[0]
      Loaded 2 devices to map.
info: SmartFriends.Api.Session[0]
      Connecting to 192.168.178.63
info: SmartFriends.Api.Session[0]
      Logging in as homeassistant
info: SmartFriends.Api.Session[0]
      Logged in to SmartFriendsBox
info: SmartFriends.Mqtt.MqttClientService[0]
      MQTT StartAsync method called.
info: SmartFriends.Mqtt.MqttClient[0]
      Client Connected to mqtt://homeassistant:1883
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://0.0.0.0:80
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: /opt
info: SmartFriends.Mqtt.MqttClient[0]
      Received 'smartfriends2mqtt/sf_11291/rollingShutter/set': Down
info: SmartFriends.Mqtt.MqttClient[0]
      Received 'smartfriends2mqtt/sf_11291/rollingShutter/set': Stop
info: SmartFriends.Mqtt.MqttClient[0]
      Received 'smartfriends2mqtt/sf_11291/rollingShutter/set': Up

I found a solution by myself.
The Id has changed.

[
  {
    "id": 19322,
    "name": "Rollo",
    "room": "LivingRoom",
    "gatewayDevice": "SmartFriendsBox",
    "kind": "RollingShutter",
    "manufacturer": "Alfred Schellenberg GmbH",
    "state": 1,
    "devices": {
      "rollingShutter": {
        "Id": 11291,
        "description": "SchellenbergRadioMotor_Unidirectional",
        "commands": {
          "Stop": 0,
          "Up": 1,
          "Down": 2
        },
        "currentValue": 1
      }
    }
  },
  {
    "id": 4081,
    "name": "Rolladen",
    "room": "Badezimmer",
    "gatewayDevice": "SmartFriendsBox",
    "kind": "RollingShutter",
    "manufacturer": "Alfred Schellenberg GmbH",
    "state": 1,
    "devices": {
      "rollingShutter": {
        "Id": 10114,
        "description": "SchellenbergRadioMotor_Unidirectional",
        "commands": {
          "Stop": 0,
          "Up": 1,
          "Down": 2
        },
        "currentValue": 1
      }
    }
  }
]

i dont know why, but before there where no 2 different Id´s
The first cover has id “19322” and “11291”.
Before ist only has the “11291”.
Now i changes to “19322” and it works again.
Same with the second cover.
Changing 10114 to 4081 in the “deviceMap.json” did the trick.

Hope it helps someone.

Glad you figured it out. I bet it was the SmartFriends hub upgrade. The IDs are controlled by the hub and my bridge just forwards them. Some day I might make a web GUI for easier configuration where you could see such changes.

FYI about the repos
1.) hassio-addon → This is the repo for downloading and installing the add-on. There is no code just home assistant add-on configs. This also contains the files for building the docker container which HA runs.
2.) smartfriends-bridge → This is the actual code but contains only a release zip of the binaries. You could compile it yourself from here or download the release binaries and run it without HA.

Why do I have 2 repos? Because the hassio-addon has a required structure so the add-on store can read it and that structure does not fit the project or release cycle very well in my opinion.

1 Like

Hi, with the Last HA Version 2023.08 comes a change in name conventions belonging to MQTT. At the Moment it is only a notice but will change in HA 2024.02.
Did you plan to bring an update according to this changes?

Yes, I will be fixing it as soon as I have some time. My understanding is that it should be a rather small change, probably just delete a line of code.

Hi, thank you for your answer.
Yes i also understand that ist is only a small change, and there is enough time left.

Greetings

I just released version 3.10 with the MQTT entity name removed.

Thank you for the quick Solution.
Updated and works.

Hi @GimpArm ,
I have recently started having problems with your addon. My rolling shutters do not want to move via Home Assistant. As soon as I execute the corresponding command in the browser, I only get false. I have already checked the IDs and reinstalled the addon. In the Smart Friends App everything works fine.
What can I do?

Seeing your logs would help. Put them up at pastebin.com and show me the link. Also a copy of the output of /raw would help.

Aside from that make sure you have the correct values for all the settings like CSymbol, CSymbolAddon, ShcVersion, and ShApiVersion

I also make sure to have a different user configure for the addon than what I use for the app. This user doesn’t need administrator access.

I managed to solve the problem myself. There was an update on the Smart Friends Box and then everything worked again…

Thanks anyway.

Sorry for the silly question from a newbie. :wink:
but how can I install or integrate this add-on ?

thanks

If you’re using Home Assistant OS or Home Assistant Supervisor (then you have the addons tab in the settings) you have to open the addon store, click on the three dots, click on repositories and paste the following link there: https://github.com/gimparm/hassio-addons* (without the star) . Then you should be able to install the addon in the addon store.
I hope I could help you!

Tanks, but this is the way i did.
I get the error message wich you can see in the attachment.

Any Ideas?

It says “https” is not supported. So try adding it with just http instead of https.

Same result.

This is not a problem specific to this add-on, you are probably having problems installing any 3rd party add-on or HACS.

First make sure you have no extra spaces in the url. I read some people have problems because they copy&pasted white space characters. Also go back to the https version if the url.

Try typing the url instead of copy&past.

???
I did the same once again and now it works.

Thank you very much for your help!!