Hi,
I have a Yamaha reciever which has a webinterface where I can turn it on/off via a couple of .bat files in Windows.
Now I have created a dummy switch with
On command = script://E:\DomoticzScripts\Yamaha\Start.bat
Off command = script://E:\DomoticzScripts\Yamaha\Stop.bat
I have set the service account running Domoticz to my admin user.
I have tried pointing to a shortcut pointing to the .bat file (so I could set the always run as admin flag).
But can't seem to get it to work.
Any ideas would be greatly appreciated.
Execute .bat script as administrator Topic is solved
Moderators: leecollings, remb0
-
- Posts: 3
- Joined: Thursday 24 November 2016 22:33
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Execute .bat script as administrator
Brilliant thanks, it was the UAC. Disabled it and set the service back to Local system.
Do you know if I can combine this on/off button with a "System Alive Checker (Ping)" to get the status updated if I switch it on outside of Domoticz?
Do you know if I can combine this on/off button with a "System Alive Checker (Ping)" to get the status updated if I switch it on outside of Domoticz?
-
- Posts: 3
- Joined: Thursday 24 November 2016 22:33
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Execute .bat script as administrator
Actually nevermind, I can see the reciever is basically always online, so will need to do something else.
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Execute .bat script as administrator
Doesn't it provide a web interface?
Where you could pull a json reply and look for the data there?
For a Denon receiver it works with XML status like this:
Where you could pull a json reply and look for the data there?
For a Denon receiver it works with XML status like this:
Code: Select all
<item>
<FriendlyName>
<value>Denon</value>
</FriendlyName>
<Power>
<value>ON</value>
</Power>
<ZonePower>
<value>ON</value>
</ZonePower>
<RenameZone>
<value>LIVING</value>
</RenameZone>
<TopMenuLink>
<value>ON</value>
</TopMenuLink>
<VideoSelectDisp>
<value>ON</value>
</VideoSelectDisp>
<VideoSelect>
<value>DVD</value>
</VideoSelect>
<VideoSelectOnOff>
<value>ON</value>
</VideoSelectOnOff>
<VideoSelectLists>
<value index="ON" table="On" param=""/>
<value index="OFF" table="Off" param=""/>
<value index="SAT/CBL" table="CBL/SAT" param=""/>
<value index="DVD" table="DVD" param=""/>
<value index="CD" table="CD" param=""/>
</VideoSelectLists>
<ModelId>
<value>4</value>
</ModelId>
<BrandId>
<value>DENON_MODEL</value>
</BrandId>
<SalesArea>
<value>1</value>
</SalesArea>
<InputFuncSelect>
<value>TUNER</value>
</InputFuncSelect>
<NetFuncSelect>
<value>FLICKR</value>
</NetFuncSelect>
<selectSurround>
<value>DTS NEO:6 music</value>
</selectSurround>
<VolumeDisplay>
<value>Absolute</value>
</VolumeDisplay>
<MasterVolume>
<value>-50.0</value>
</MasterVolume>
<Mute>
<value>off</value>
</Mute>
<RemoteMaintenance>
<value>OFF</value>
</RemoteMaintenance>
<SubwooferDisplay>
<value>FALSE</value>
</SubwooferDisplay>
<Zone2VolDisp>
<value>TRUE</value>
</Zone2VolDisp>
</item>
Who is online
Users browsing this forum: No registered users and 1 guest