Announcement

Collapse
No announcement yet.

New SwitchBot plugin - using latest SwitchBot API V1.1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by alexbk66 View Post
    And all Hubs support infrared commands (learning) - so you can control devices using IR, pretty neat.

    I will add the "Remote Control" device soon.
    This would be awesome... but according to their website docs, the Hub Mini (which they sell as a bundle with their Blind Tilts on Amazon) does not support IR Decoding?

    The difference between Hub Mini and Hub 2 – SwitchBot Help Center (switch-bot.com)

    Comment


      #17
      Originally posted by TC1 View Post
      This would be awesome... but according to their website docs, the Hub Mini (which they sell as a bundle with their Blind Tilts on Amazon) does not support IR Decoding? The difference between Hub Mini and Hub 2 – SwitchBot Help Center (switch-bot.com)
      "Infrared Decoding" is for receiving IR signals to trigger events in the app, yes Hub Mini doesn't support this. But both hubs support "Infrared remote control function", which I'm using in my Hub Mini. I'm also ordering Hub 2 for testing.

      Click image for larger version

Name:	image.png
Views:	141
Size:	41.7 KB
ID:	1620178

      Comment


        #18
        With Homeassistant,

        I have bought 3 esp32 to monitor ble advertisements near my place. This is really plug and play. Another bluetooth usb dongle is capturing ble packets on the automation pc. Everything is forwarded as is as if it was captured by only one ble adapter. So I can better (range)detect people presence + connect to a bunch of ble devices

        I also have an aranet co2 sensors that I can get the value from ha to hs4.

        Same with a switchbot BOT.


        this is called bluetooth proxies. Would that that also be doable in hs (if yes, then I could turn off homeassistant all together.) Home assistant ble proxy are really plug and play, that is why I went in that direction.


        my ble proxies are all olimex-esp32-poe-iso.

        works great and better than my previous diy solution.


        I think it should be doable via esphome , while keeping the pssive adv. capture and the possibility to connect to devices at the same time .

        Comment


          #19
          Originally posted by alexbk66 View Post

          "Infrared Decoding" is for receiving IR signals to trigger events in the app, yes Hub Mini doesn't support this. But both hubs support "Infrared remote control function", which I'm using in my Hub Mini. I'm also ordering Hub 2 for testing.

          Click image for larger version

Name:	image.png
Views:	141
Size:	41.7 KB
ID:	1620178
          So if I have an HS controlled IR blaster in the same room with the Hub Mini, I could use it to send SwitchBot commands? Would I need to buy a SwitchBot IR remote to learn the commands or are they documented somewhere?

          Comment


            #20
            Originally posted by TC1 View Post
            So if I have an HS controlled IR blaster in the same room with the Hub Mini, I could use it to send SwitchBot commands? Would I need to buy a SwitchBot IR remote to learn the commands or are they documented somewhere?
            Yes. Every SwitchBot hub supports sending IR commands (and some other devices i.e. Ceiling Light). You don't need SwitchBot remote - the hub learns the command from your existing remote, for many device types they have a template, so you just try your remote "Power" button - and SwitchBot can detect the template.

            Supported commands are documented here:

            https://github.com/OpenWonderLabs/Sw...remote-devices

            You can also learn each command from your existing remote.

            I'm currently working on adding the Virtual Remote device type.

            Click image for larger version  Name:	image.png Views:	0 Size:	15.0 KB ID:	1620341

            Click image for larger version

Name:	image.png
Views:	121
Size:	42.4 KB
ID:	1620342​​

            Comment


              #21
              Ok... so I checked out that page and I'm still not sure. It says the hub can understand standard IR commands, such as on, off, volume up/down, etc... so I would then map the IR command received to a switchbot function, like BlindTilt FullyOpen? Does that mapping get setup by the user in the mobile app?

              Comment


                #22
                I think you need to read SwitchBot instructions about this

                https://support.switch-bot.com/hc/en...hBot-Hub-Mini-

                Regarding the API implementation, as I said, I'm working on it right now.

                The documentation shows the list of commands supported by default depending on the selected device type. All other commands are sent as "custom" with the command name as argument. I can't see the function in the API to get the list of configured commands, so I might need to implement configuration in the plugin, not sure at the moment - I contacted SwitchBot support regarding this.

                For infrared remote devices, when you have created customized buttons, you must set commandType to customize, otherwise the command will not work. command needs to be set to the name of the customized button.​
                Same applies to "Scenes" - the API has a function to set a Scene, but no function to get a list of scenes from the app. Or I might be just blind.

                Comment


                  #23
                  I think we're talking past each other....

                  I read and watched the link you indicated, and that's for the Hub Mini to learn the remote of an appliance you have in your house so that the Hub Mini can IR control that appliance. I don't need that, I already have an IR Blaster that HS4 controls for that purpose.

                  My original request/question was how could I locally control SwitchBot devices (like their Blind Tilt) via HS4.

                  Comment


                    #24
                    Originally posted by TC1 View Post
                    I think we're talking past each other....

                    I read and watched the link you indicated, and that's for the Hub Mini to learn the remote of an appliance you have in your house so that the Hub Mini can IR control that appliance. I don't need that, I already have an IR Blaster that HS4 controls for that purpose.

                    My original request/question was how could I locally control SwitchBot devices (like their Blind Tilt) via HS4.
                    I misunderstood your question. For local control SwitchBot uses Bluetooth API, which I will add later as it's a bit more work.

                    Comment


                      #25
                      Originally posted by alexbk66 View Post

                      I misunderstood your question. For local control SwitchBot uses Bluetooth API, which I will add later as it's a bit more work.
                      Thanks, I look forward to that.

                      Comment


                        #26
                        The plugin is officially released and the new forum is created, please move the discussion there.

                        https://forums.homeseer.com/forum/hs...a/ak-switchbot
                        https://forums.homeseer.com/forum/hs...chbot-api-v1-1

                        Comment


                          #27
                          Originally posted by pistacheL0 View Post
                          With Homeassistant,
                          FYI, I also started AKHomeAssistant plugin https://forums.homeseer.com/forum/hs...nt-plugin-hass

                          Comment


                            #28
                            Yes,I need to check that, that would maybe remove a big (big for me lol)part of my nodered setup.

                            This year is very busy for me but will post if I have a question.

                            Comment


                              #29
                              Originally posted by pistacheL0 View Post
                              Yes,I need to check that, that would maybe remove a big (big for me and my ocd lol)part of my nodered setup.

                              This year is very busy for me but will post if I have a question.
                              Sure. There's still a lot of work there, currently it's only a "proof of concept".

                              Comment


                                #30
                                Originally posted by pistacheL0 View Post
                                With Homeassistant,
                                FYI https://forums.homeseer.com/forum/hs...nt-plugin-hass

                                Comment

                                Working...
                                X