Runortyx
(Dennis Hewitt)
December 20, 2017, 7:16pm
1
Hi there,
My alexa lost all items with the tag TargetTemperature after upgrading to 2.2
here my items that worked good with 2.1
i tried hue emulation and the official skill, both the same, alexa dont find the TargetTemperature items
/* Alexa */
Number Alexa_WZ_Heating "Temperatur Wohnzimmer" ["TargetTemperature"] { channel="max:thermostat:JEQ0304609:JMD3008585:set_temp" }
Number Alexa_SZ_Heating "Temperatur Schlafzimmer" ["TargetTemperature"] { channel="max:thermostat:JEQ0304609:JEQ0433159:set_temp" }
Number Alexa_KZ_Heating_Max "Temperatur Kinderzimmer" ["TargetTemperature"] { channel="max:thermostat:JEQ0304609:JEQ0432308:set_temp" }
Number Alexa_KUE_Heating_Max "Temperatur Kueche" ["TargetTemperature"] { channel="max:thermostat:JEQ0304609:LEQ0007061:set_temp" }
Number Alexa_KE_Heating_Max "Temperatur Keller" ["TargetTemperature"] { channel="max:thermostat:JEQ0304609:JMD3011569:set_temp" }
Switch Alexa_WZ_TV "TV Wohnzimmer" ["Switchable"] {exec=">[OFF:/opt/raspberry-remote/send 10011 1 0] >[ON:/opt/raspberry-remote/send 10011 1 1]"}
Switch Alexa_WZ_PS4 "PS4" ["Switchable"] {exec=">[OFF:/opt/raspberry-remote/send 10011 3 0] >[ON:/opt/raspberry-remote/send 10011 3 1]"}
Switch Alexa_WZ_PI3 "Kodi Wohnzimmer" ["Switchable"] {exec=">[OFF:/opt/raspberry-remote/send 10011 2 0] >[ON:/opt/raspberry-remote/send 10011 2 1]"}
Switch Alexa_WZ_StehLampe "Stehlampe Wohnzimmer" ["Switchable"] {exec=">[OFF:/opt/raspberry-remote/send 00101 2 0] >[ON:/opt/raspberry-remote/send 00101 2 1]"}
/* Switch Alexa_SZ_TV "TV Schlafzimmer" ["Switchable"] { channel="silvercrestwifisocket:wifiSocket:f18e62d7:switch" } */
Runortyx
(Dennis Hewitt)
December 21, 2017, 8:07am
2
i tried hue emulation and the official skill, both the same, alexa dont find the TargetTemperature items
mpuff
(Martin Puff)
December 22, 2017, 2:45pm
3
i have the same issue.
i have openhab 2.2 running in docker on a synology!
Celaeno1
(Alex)
December 23, 2017, 8:59pm
4
TargetTemperature isn’t running with hueemulation anymore. It has been removed. See here:
private static final String APPLICATION_JSON = "application/json";
private static final String CHARSET = "utf-8";
private static final String NEW_CLIENT_RESP = "[{\"success\":{\"username\": \"%s\"}}]";
private static final String STATE_RESP = "[{\"success\":{\"/lights/%s/state/on\":%s}}]";
private static final File USER_FILE = new File(
ConfigConstants.getUserDataFolder() + File.separator + "hueemulation" + File.separator + "usernames");
private static final File UDN_FILE = new File(
ConfigConstants.getUserDataFolder() + File.separator + "hueemulation" + File.separator + "udn");
private static final File ITEM_FILE = new File(
ConfigConstants.getUserDataFolder() + File.separator + "hueemulation" + File.separator + "items");
private static final String[] SUPPORTED_TAGS = new String[] { "Switchable", "Lighting" };
private Gson gson = new Gson();
private HttpService httpService;
private ItemRegistry itemRegistry;
private EventPublisher eventPublisher;
private HueEmulationUpnpServer disco;
private String udn;
private String xmlDoc;
private int webPort;
private boolean pairingEnabled = false;
// list of valid Hue API user ids
You can use “Official Alexa Smart Home Skill for Openhab” via myopenhab.org
Then you have to use the tag [ “Thermostat” ] for a group and 3 child tags. Like in this example:
Group gDownstairsThermostat "Downstairs Thermostat" (gFF) ["Thermostat"]
Number Downstairs_Thermostat_CurrentTemp "Downstairs Thermostat Current Temperature" (gDownstairsThermostat) ["CurrentTemperature"]
Number Downstairs_Thermostat_Target_Temperature "Downstairs Thermostat Target Temperature" (gDownstairsThermostat) ["TargetTemperature"]
String Downstairs_Thermostat_Heating_Cooling_Mode "Downstairs Thermostat Heating/Cooling Mode" (gDownstairsThermostat) ["homekit:HeatingCooling"]
NCO
(E. Gerland)
November 22, 2018, 11:51am
5
So there is no other option using Alexa with Hue Emulation anymore?
I don’t like the idea to operate my openhab through any kind of cloud service
Celaeno1
(Alex)
November 22, 2018, 12:03pm
6
@NCO
Well, Alexa is a cloud service, too.
You can use your personal “openhab cloud service” located in your local LAN. But, it is not that easy to configure. This personal cloud service also receive the commands from Alexa cloud.
NCO
(E. Gerland)
November 22, 2018, 1:03pm
7
That’s true, but I just activate Alexa when I am at home. So I can make sure that „she“ does not mess up my apartment.
Beside this, my system is solely operating locally with no connection from the outside world (just available through a VPN tunnel).