@abmantis
i dont know if anybody is working on a alexa smarthome skill but i found a nice solution based on the fauxmos-script - called hue-bridge
it was really easy to get them on a raspberry pi to run:
$ wget https://github.com/bwssytems/ha-bridge/releases/download/v3.5.1/ha-bridge-3.5.1.jar
$ java -jar -Dserver.port=90 ha-bridge-3.5.1.jar
… to run them on port 90
(java 1.8 should be installed and active, check with $ javac -version
and $ java -version
)
thats it after them you have a easy to configure webinterface:
with “Manual Add” i create some devices witch i would control via Alexa
As Example:
for Controlling a max! thermostat i use this config:
ON-URL
http://user:password@192.168.0.200/api/device/SleeproomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=20.5
DIM-URL
http://user:password@192.168.0.200/api/device/SleeproomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=${intensity.percent}
OFF-URL
http://user:password@192.168.0.200/api/device/SleeproomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=4.5
For a switch device:
ON-URL
http://user:password@192.168.0.200/api/device/switch_kue/turnOn
OFF-URL
http://user:password@192.168.0.200/api/device/switch_kue/turnOff
For a milight-device:
ON-URL
http://user:password@192.168.0.200/api/device/milight-rgb-controller/turnOn
DIM-URL
http://user:password@192.168.0.200/api/device/milight-rgb-controller/changeDimlevelTo?dimlevel=${intensity.percent}
OFF-URL
http://user:password@192.168.0.200/api/device/milight-rgb-controller/turnOff
also controlling a group of devices was possible:
ON-URL
[
{"item":"http://user:password@192.168.0.200/api/device/WorkroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=20.5"},
{"item":"http://user:password@192.168.0.200/api/device/LivingroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=19"},
{"item":"http://user:password@192.168.0.200/api/device/KitchenHeatingThermostat/changeTemperatureTo?temperatureSetpoint=20.5"},
{"item":"http://user:password@192.168.0.200/api/device/ChildroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=20.5"},
{"item":"http://user:password@192.168.0.200/api/device/SleeproomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=20.5"}
]
DIM-URL
[
{"item":"http://user:password@192.168.0.200/api/device/WorkroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=${intensity.percent}"},
{"item":"http://user:password@192.168.0.200/api/device/LivingroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=${intensity.percent}"},
{"item":"http://user:password@192.168.0.200/api/device/KitchenHeatingThermostat/changeTemperatureTo?temperatureSetpoint=${intensity.percent}"},
{"item":"http://user:password@192.168.0.200/api/device/ChildroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=${intensity.percent}"},
{"item":"http://user:password@192.168.0.200/api/device/SleeproomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=${intensity.percent}"}
]
OFF-URL
[
{"item":"http://user:password@192.168.0.200/api/device/WorkroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=4.5"},
{"item":"http://user:password@192.168.0.200/api/device/LivingroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=4.5"},
{"item":"http://user:password@192.168.0.200/api/device/KitchenHeatingThermostat/changeTemperatureTo?temperatureSetpoint=4.5"},
{"item":"http://user:password@192.168.0.200/api/device/ChildroomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=4.5"},
{"item":"http://user:password@192.168.0.200/api/device/SleeproomHeatingThermostat/changeTemperatureTo?temperatureSetpoint=4.5"}
]
but group Devices was also possible in Alexa Smart Home:
and after them i say “alexa, discover devices” (or “alexa, suche geräte” for german)
and after 20 seconds they was listed as smart-home devices
for me
“Alexa, schalte im Arbeitszimmer die Heizung ein” (Alexa, turn the workroom heating on)
“Alexa, Arbeitszimmer Heizung aus” (Alexa, Workroom heating off)
“Alexa, stelle im Arbeitszimmer die Heizung auf 14 Grad” (Alexa, set Workroom heating to 14 degrees)
“Alexa, schalte alle Heizungen aus” (Alexa, turn off all heatings)
“Alexa, schalte im Badezimmer das Radio ein” (Alexa, Turn the bath radio on)
“Alexa, schalte in der Küche das Licht ein” (Alexa, switch the litchen light on)
“Alexa, schalte im Schlafzimmer das Nachtlicht ein” (Alexa, nightlight in sleepingroom on)
“Alexa, stelle im Schlafzimmer das Nachtlicht auf 40 Prozent” (Alexa, turn the sleeproon nightlight to 40 percent)
… works well, Alexa response with “okay”