Package it.freedomotic.events

Examples of it.freedomotic.events.ProtocolRead.addProperty()


                    messageDescription = "Luminous intensity change";
                    if (level != null) {
                        event.addProperty("level", level);
                    }
                    if (speed != null) {
                        event.addProperty("speed", speed);
                    }
                }
                if (frameParts[2].equalsIgnoreCase("2")) {
                    String hour = frameParts[3];
                    String min = frameParts[4];
View Full Code Here


                    String hour = frameParts[3];
                    String min = frameParts[4];
                    String sec = frameParts[5];
                    messageDescription = "Luminous intensity change";
                    if (hour != null) {
                        event.addProperty("hour", hour);
                    }
                    if (min != null) {
                        event.addProperty("min", min);
                    }
                    if (sec != null) {
View Full Code Here

        }
        Freedomotic.logger.info("Someone or something changed " + ((control.label == null) ? control.name : control.label) + " to " + value + " at " + node.name);
        Isy99iFrame.writeAreaLog(Isy99iUtilities.getDateTime() + ": Someone or something changed " + ((control.label == null) ? control.name : control.label) + " to " + InsteonOps.convertOnLevelToPercent(value.toString()) + " at " + node.address + " type " + node.typeReadable + " uom " + control.numericUnit);
        ProtocolRead event = new ProtocolRead(this, "Isy99i", node.address); //IP:PORT:RELAYLINE
        int valuePercent = InsteonOps.convertOnLevelToPercent(value.toString());
        event.addProperty("type", node.typeReadable);
        // lighting support
        if (valuePercent > 0) {
            event.addProperty("isOn", "true");
        } else {
            event.addProperty("isOn", "false");
View Full Code Here

                    messageDescription = "Luminous intensity change";
                    if (hour != null) {
                        event.addProperty("hour", hour);
                    }
                    if (min != null) {
                        event.addProperty("min", min);
                    }
                    if (sec != null) {
                        event.addProperty("sec", sec);
                    }
                }
View Full Code Here

        ProtocolRead event = new ProtocolRead(this, "Isy99i", node.address); //IP:PORT:RELAYLINE
        int valuePercent = InsteonOps.convertOnLevelToPercent(value.toString());
        event.addProperty("type", node.typeReadable);
        // lighting support
        if (valuePercent > 0) {
            event.addProperty("isOn", "true");
        } else {
            event.addProperty("isOn", "false");
        }
        event.addProperty("value", Integer.toString(valuePercent));
        Isy99i.aux.notifyIsyEvent(event);
View Full Code Here

                    }
                    if (min != null) {
                        event.addProperty("min", min);
                    }
                    if (sec != null) {
                        event.addProperty("sec", sec);
                    }
                }
            }
            // POWER MANAGEMENT
            if (who.equalsIgnoreCase("3")) {
View Full Code Here

        event.addProperty("type", node.typeReadable);
        // lighting support
        if (valuePercent > 0) {
            event.addProperty("isOn", "true");
        } else {
            event.addProperty("isOn", "false");
        }
        event.addProperty("value", Integer.toString(valuePercent));
        Isy99i.aux.notifyIsyEvent(event);
    }
View Full Code Here

                    current = frameParts[4];
                    power = frameParts[5];
                    energy = frameParts[6];
                    messageDescription = "Load control status";
                    if (voltage != null) {
                        event.addProperty("voltage", voltage);
                    }
                    if (current != null) {
                        event.addProperty("current", current);
                    }
                    if (power != null) {
View Full Code Here

        if (valuePercent > 0) {
            event.addProperty("isOn", "true");
        } else {
            event.addProperty("isOn", "false");
        }
        event.addProperty("value", Integer.toString(valuePercent));
        Isy99i.aux.notifyIsyEvent(event);
    }

    /**
     * This method is invoked when the network is renamed. Network is the top
View Full Code Here

                    messageDescription = "Load control status";
                    if (voltage != null) {
                        event.addProperty("voltage", voltage);
                    }
                    if (current != null) {
                        event.addProperty("current", current);
                    }
                    if (power != null) {
                        event.addProperty("power", power);
                    }
                    if (energy != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.