- Posts: 373
- Thank you received: 3
HA Control of myServer
- bitzerjd
- Topic Author
- Offline
- User
-
Less
More
7 months 4 weeks ago #4634
by bitzerjd
HA Control of myServer was created by bitzerjd
I'm making my Christmas list and figured I would ask again...
It would be freaking awesome if you could send commands from HA to myServer. I have added State indications on my light buttons on my SmartRemote. If the light is on, the label says "ON" and in some cases changes color. If I only control the light via Allonis, it's great, everything stays in sync. The problem is when the light is turned on manually or by a HA automation and the state doesn't match anymore.
I could easily add the automations in HA to update the system variables in my myServer...if the HA to myServer integration existed.
If you could kick off myServer Macros, voice control would be super easy!
I would imagine that having a myServer integration available for HA would be a great selling point.
I've been kind of good this year, maybe Santa has some elves that could cobble something together.
Happy Holidays!
It would be freaking awesome if you could send commands from HA to myServer. I have added State indications on my light buttons on my SmartRemote. If the light is on, the label says "ON" and in some cases changes color. If I only control the light via Allonis, it's great, everything stays in sync. The problem is when the light is turned on manually or by a HA automation and the state doesn't match anymore.
I could easily add the automations in HA to update the system variables in my myServer...if the HA to myServer integration existed.
If you could kick off myServer Macros, voice control would be super easy!
I would imagine that having a myServer integration available for HA would be a great selling point.
I've been kind of good this year, maybe Santa has some elves that could cobble something together.
Happy Holidays!
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
7 months 4 weeks ago - 7 months 4 weeks ago #4635
by bowlingbeeg
Replied by bowlingbeeg on topic HA Control of myServer
You can send commands from HA to myServer, just use the API
http://192.168.x.y/api/docommand?command="fill in your command"
http://192.168.x.y/api/docommand?command="fill in your command"
Last edit: 7 months 4 weeks ago by bowlingbeeg.
Please Log in to join the conversation.
- bitzerjd
- Topic Author
- Offline
- User
-
Less
More
- Posts: 373
- Thank you received: 3
7 months 4 weeks ago #4636
by bitzerjd
Replied by bitzerjd on topic HA Control of myServer
Do you mean through the REST interface? I've tried that in the past and could never get it working.
Please Log in to join the conversation.
- bowlingbeeg
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
7 months 4 weeks ago #4637
by bowlingbeeg
Replied by bowlingbeeg on topic HA Control of myServer
I would use the shell command and use curl. I'm not sure if the REST integration would work or not, it might.
www.home-assistant.io/integrations/shell_command/
www.home-assistant.io/integrations/shell_command/
Please Log in to join the conversation.
- aa6vh
- Offline
- User
-
Less
More
- Posts: 108
- Thank you received: 7
7 months 4 weeks ago #4638
by aa6vh
Replied by aa6vh on topic HA Control of myServer
I am by far no expert on Home Assistant, I am still trying to figure it out. But I did manage to send commands to my Homeseer4 server. You could do the same thing with the proper changes to address Allonis instead (using the "DoCommand" as described).
Here are my yaml entries for Homeseer (if that helps):
rest_command:
runevent:
url: "http://192.168.0.79/JSON?request=runevent&groupname={{ states('input_text.group') }}&name={{ states('input_text.event') }}"
setdevicelabel:
url: "http://192.168.0.79/JSON?request=controldevicebylabel&ref={{ states('input_text.devid') }}&label={{ states('input_text.devval') }}"
input_text:
group:
name: GroupName
event:
name: EventName
devid:
name: DeviceId
devval:
name: DeviceValue
A Sample of one of my Automation's steps:
Then do
Input text 'Set' on DeviceId
Input text 'Set' on DeviceValue
RESTful Command 'rest_command.setdevicelabel'
To send to Allonis, the http request url would be changed to the following, with the macro name setting added to the input_text:
allonis:
http://192.168.0.81/api/docommand?command={{ states('input_text.macro') }}
Someday I might actually try this with Allonis.
Here are my yaml entries for Homeseer (if that helps):
rest_command:
runevent:
url: "http://192.168.0.79/JSON?request=runevent&groupname={{ states('input_text.group') }}&name={{ states('input_text.event') }}"
setdevicelabel:
url: "http://192.168.0.79/JSON?request=controldevicebylabel&ref={{ states('input_text.devid') }}&label={{ states('input_text.devval') }}"
input_text:
group:
name: GroupName
event:
name: EventName
devid:
name: DeviceId
devval:
name: DeviceValue
A Sample of one of my Automation's steps:
Then do
Input text 'Set' on DeviceId
Input text 'Set' on DeviceValue
RESTful Command 'rest_command.setdevicelabel'
To send to Allonis, the http request url would be changed to the following, with the macro name setting added to the input_text:
allonis:
http://192.168.0.81/api/docommand?command={{ states('input_text.macro') }}
Someday I might actually try this with Allonis.
Please Log in to join the conversation.
- bitzerjd
- Topic Author
- Offline
- User
-
Less
More
- Posts: 373
- Thank you received: 3
7 months 4 weeks ago #4639
by bitzerjd
Replied by bitzerjd on topic HA Control of myServer
I tried this approach but am struggling how to add them to an automation without manual YAML editing. It would be nice to have a formal Integration, where the components on the myServer were available within HA.
Please Log in to join the conversation.
Time to create page: 0.177 seconds