Smart Friends Bridge Addon

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!!

Yeah, you probably had hidden white space characters in your first copy&paste.

Now every shutter is working.
But I have Zigbee Switches from Osram.
{
“id”: 18877,
“name”: “Beleuchtung”,
“room”: “Wohnbereich”,
“gatewayDevice”: “SmartFriendsBox”,
“kind”: “SwitchActuator”,
“manufacturer”: “Zigbee”,
“model”: “Plug 01”,
“state”: 0,
“devices”: {
“switchActuator”: {
“Id”: 12524,
“description”: “ZigbeeSwitch”,
“commands”: {
“On”: 1,
“Toggle”: 2,
“Off”: 0
},
“currentValue”: 0
},
“failureStatus”: {
“Id”: 3369,
“description”: “ZigbeeFailureDevice”,
“currentValue”: 0
}
}
},
I took your template from the dokumentation for setup this device.
I can switch it “on” and “off”.
But when I switch it “on” the switch symbol in hassos goes back in the off position after 3 Seconds.

Can you give me a funktionale Config for my yaml ? :blush:

Thank you in advance

Got it. !! —> RTFM :see_no_evil: :see_no_evil:

Hello,
i get no Shutter-Positions since the HASSOS update 2023.12.1.
other funktions working good.
only position and on/off status from switches are not shown anymore.

No errors or something in the logs.
when i entered the comand in the terminal then the position is correct.

i tried everything and now i have now idea.

thanks for nswers.

Try posting your config. It’s extremely hard to help without more details about what you did. Since you do see the correct position then it is completely how you set it up in HA.

Hi, here are the config:
cover:

  • platform: template
    covers:
    shutter_office01:
    friendly_name: “Rollladen_WZ_Fenster”
    device_class: shutter
    position_template: “{{ states(‘sensor.shutter_position_office01’) }}”
    open_cover:
    service: shell_command.shutter_up
    data:
    device_id: 15885
    close_cover:
    service: shell_command.shutter_down
    data:
    device_id: 15885
    stop_cover:
    service: shell_command.shutter_stop
    data:
    device_id: 15885
    set_cover_position:
    service: shell_command.shutter_position
    data_template:
    device_id: 15885
    position: “{{ position }}”

shell_command:
shutter_up: “curl http://homeassistant:5001/set/{{ device_id }}/rollingShutter/up”
shutter_down: “curl http://homeassistant:5001/set/{{ device_id }}/rollingShutter/down”
shutter_stop: “curl http://homeassistant:5001/set/{{ device_id }}/rollingShutter/stop”
shutter_position: “curl http://homeassistant:5001/set/{{ device_id }}/position/{{ 100 - position }}”
switch_on: “curl http://homeassistant:5001/set/{{ device_id }}/on”
switch_off: “curl http://homeassistant:5001/set/{{ device_id }}/off”
switch_toggle: “curl http://homeassistant:5001/set/{{ device_id }}/toggle”

sensor:

Remote control is still functionally.

thanks

type or paste code here

Hello everyone,

For beginners, can anyone please describe in simple terms how the Smart Friends Bridge addon can be used with the REST API? Perhaps a simple example of where and which file has to be created and how the content of the file is structured. That would be very helpful.

Thank you very much.

In your sensor, I do not see a scan_interval which tells it how often to update. Without one then you use the HA default of 30 seconds, which means you will have started your blinds moving and then it will be a while before you get the position feedback. I suggest you set it to 5.

There are many examples in the documentation GitHub - GimpArm/smartfriends-bridge

That’s the way i set up the Add On. And it works fine till the update 07.12.2023.

No diferense with the scan_interval 5


Hi GimpArm,
I am using your AddOn for my covers, and everthing worked fine as it should.
Im using MQTT so i have (mqtt) Covers.
Now i found the hass-shutter-card to visualize the covers.
i want to make the covers “moving” using the position state, but the postion state only changed from 0 to “x” when the cover stops.
Is it possible to get the position state (maybe) every second via the mqtt topic?

Greetings from germany

@GimpArm
I am also having trouble setting it up :frowning:
I guess the setup itself worked good, also to get the connection with the smart friends box.

Now the issues are coming for me:
How can I use the REST API?
Yes, there are examples in your documentation, but what I don’t really understand is, where do I have to add such commands (I am pretty new to HA, sorry).

E.g. what do I have to do to get some controls on a Dashboard within HA?
Is it even possible via the REST API, do I need MQTT for it?
Would it be possible to create a little video with a simple example, where to copy in the commands etc that the controls appear on the Dashboard?