0
Under review

Alexa / Google home i3pro server script

Adir Peleg 8 months ago updated by Vladimir Ovchinnikov 3 months ago 12

Hi

I want to use i3 Pro and iridium server with google home and alexa script:

i tried this script but it didn't work:

In server log i get "channel not found".

Please send me the correct script for use with HDL.

<b>var</b> Alexa = IR.GetDevice("Amazon Alexa Network");
<b>var</b> HDL= IR.GetDevice("HDL Buspro Network (UDP)");
IR.AddListener(IR.EVENT_START,0,<b>function</b>() {
  Alexa.SetFeedback("Thermostat:TemperatureMode", IR.SUB_DEVICE_STATE_CLIMATE_TEMP_MODE_COOLING);
  Alexa.SetFeedback("Thermostat:HeatTargetTemperature", 30);
  Alexa.SetFeedback("Thermostat:CoolTargetTemperature", 28);
  Alexa.SetFeedback("Thermostat:SensorTemperature", 24);
  IR.AddListener(IR.EVENT_TAG_CHANGE, Alexa, <b>function</b>(name, value) {
    <b>switch</b> (name) {
      <b>case</b> "Switch:Power":
        HDL.Set("Light", value);
        <b>break</b>;
      <b>case</b> "Dock Station:Level":
        HDL.Set("DockStation", value);
        <b>break</b>;
      <b>case</b> "Dimmer:Power":
        HDL.Set("Dimmer_ON", value);
        <b>break</b>;
      <b>case</b> "Dimmer:Level":
        HDL.Set("Dimmer_Brightness", value);
        <b>break</b>;
    }
    IR.Log("ALEXA! Device tag: " + name + " , value: " + value);
  });
});
Under review

Hello.

Check in your project that the driver "HDL Buspro Network (UDP)" has channels that you have listed in the script. For HDL channels and feedbacks should be specified as: "device:channel".

+1

I didn't understand . 

would help me a lot if you send me a demo (example) project file sirpz.

also value of switch should be toggle 0/100 - now it toggle 0/1

thx

For the HDL driver, the Set command is executed by specifying the device:


HDL.Set("HDL-BUS Pro:Light", value);

See the example in the attached project.
HDL.sirpz

Thank you Vladimir

Can you send me Google Home Script for HDL and KNX as well.

Under review

Hello.

For KNX example.

KNX.sirpz


Specify your own settings in the KNX driver.

Hi

thank you for your answer

what about google home iridium pro script?

please release documents for alexa/google home i3 pro 

Hello.

To set up Alexa documentation here. The documentation for Google Home will be published around mid-February 2019.

i fixed the hdl Alexa Script 

Armagedon_7-2-18_v4_Server.sirpz

for now light switch works great ( instead of 0/1 power need to use 0/100)

can't get the HAVC to work.

any suggestions ? fixed sirpz script will be great

thx

by the way

it will be much more easier if you will release drivers(knx\hdl, ect..) - alexa\google scripts 

Hello.

We need more details. What happens when you send a command to Alexa for HVAC?

My mistake i thought HVAC is for AC (HDL AC control) control.

is AC control is possible ?

Hello.

Amazon Alexa in iRidium is just an interface between real devices and Alexa. You need to either implement the functionality of these devices in iRidium server or provide connections to the appropriate physical devices. iRidium works with 4 types of devices:

Switch
Dock Station
Dimmer
HVAC

You can use AC Control for an HDL device, but to control this device through Alex you need one of the following types.