RESTful switch problems

Hi all.
I have been goofing around with a RESTful switch config, But I can’t get it to work.
I have 2 instances of HA. In one instance I have my Tellstick stuff. On the other instance I run hass.io and have all my z-wave stuff. Since hass.io are not tellstick-ready yet, I thought that I could use REST switches for the most important Tellstick switches. So that I could avoid any unneccessary wife-aggro by having to use 2 different HA systems. RESTful switches in hass.io for the most important tellstick switches in the old HA system.
So, to the problem.
How do I config this?
I have tested the API by using CURL. And that works fine.
But how do I config HA?
Using REST between 2 HA instances should be quite straight forward.
I tried to do it this way:

- platform: rest
  resource: http://1.1.1.1:8123/api/services/switch/myswitch_switch?api_password=mypass
  name: restSwitch1
  body_on: '{"active": "true"}'
  body_off: '{"active": "false"}'

With this config I get an

Got non-ok response from resource: 405

So, anyone got this kind of switch working?
I see in the community that people use command line switches for this, but in my head REST should work, at least between 2 HA’s.

Thank for any input. :slight_smile: