Home Assistant

 

"configuration.yaml"

 

Working file for KMtronic ModBus Temperature Monitor

 

homeassistant:
 # Name of the location where Home Assistant is running
 name: Home
 # Location required to calculate the time the sun rises and sets
 latitude: 43.123777
 longitude: 25.688826
 # Impacts weather/sunrise data (altitude above sea level in meters)
 elevation: 542
 # metric for Metric, imperial for Imperial
 unit_system: metric
 # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
 time_zone: Europe/Sofia
 # Customization file
 customize: !include customize.yaml

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
 # Secrets are defined in the file secrets.yaml
 # api_password: !secret http_password
 # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
 # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
 # Optional, allows Home Assistant developers to focus on popular components.
 # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Text to speech
tts:
 - platform: google

modbus:
 type: tcp
 host: 192.168.1.210
 port: 502
 
sensor:
 platform: modbus
 registers:
 - name: Sensor3
 unit_of_measurement: °C
 slave: 1
 register: 0
 count: 2
 register_type: input
 data_type: float
 precision: 2


device_tracker:
 - platform: ping
 interval_seconds: 30
 consider_home: 1200
 hosts:
 josh_iphone: 192.168.1.105
 my_tablet: 192.168.1.168
 
group:
 living_room:
 - light.bowl
 - light.ceiling
 - light.tv_back_light
 entities:
 - light.bedroom
 - media_player.nexus_player

scene:
 - name: Romantic
 entities:
 light.tv_back_light: on
 light.ceiling:
 state: on
 xy_color: [0.33, 0.66]
 brightness: 200
 - name: Movies
 entities:
 light.tv_back_light:
 state: on
 brightness: 100
 light.ceiling: off
 media_player.sony_bravia_tv:
 source: HDMI 1


 
#group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

 

 

 

 

 

"Home Assistant: KMtronic ModBus Temperature Monitor

 

Home Assistant: KMtronic ModBus Temperature Monitor

 

 

 

 

Working file for KMtronic ModBus Temperature Monitor

 

 

Home Assistant: KMtronic ModBus Temperature Monitor

 

Home Assistant: KMtronic ModBus Temperature Monitor

 

Home Assistant: KMtronic ModBus Temperature Monitor

Home Assistant: KMtronic ModBus Temperature Monitor 

 

APT (Astro Photography Tool) added support Canon/Nikon KMTronic based shutter cable

 

 

 

 

 

https://ideiki.com/astro/usersguide/kmtronic_cable.htm

 

 

 

 

Simple wired option:

 

 

Cable 1 meter option:

 

 

Connection:

 

 

 

Result:

 

Thursday, 10 August 2017 10:39

Control KMtronic USB relays using AutoHotkey script

Written by

 

 

 

info.kmtronic.com/software/AutoHotkey/kmtronic-autohotkey.zip

 

 

 

 

 

Monday, 10 July 2017 07:58

Q Light Controller Plus DMX

Written by

 

Connect DMX adapter to PC.

 

If Windows ask for drivers download and install from here:

http://www.ftdichip.com/Drivers/D2XX.htm

 

If drivers are installed correctly you must see "USB Serial Converter" in Device Manager

 

Download and install Q Light Controller Plus from

http://www.qlcplus.org/

 

 Run Q Light Controller Plus and click on + button to add a fixture

QLC-Plus-01

 

QLC-Plus-02

 

QLC-Plus-03

 

When you are ready with adding the correct fixture go to Inputs/Outputs 

QLC-Plus-04

 

Find DMX USB ->  KMTronic DMX Interface and check the tick on Output 

 

QLC-Plus-05

 

 Now you can go to Simple Desk to manualy control the fixture 

 

QLC-Plus-06 

 

 

You can find this in our eBay shop.

 

 

 

 

 

 

Receive POST data using PHP

 

 



KMtronic LAN DS18B20 Temperature Monitor

 

 

LAN DS18B20 High-Precision 1-Wire Digital Temperature Monitor

 

 

 

 

 ------------------------------------------------------------------------------

 

PHP file:

<?php


$date = date('Ymd');
$time = date('H:i:s');
$hourtime = date('H:i');
$unixtime = time();

$file = "/var/www/html/data/".$date.".log";
$current = file_get_contents($file);

$current .= $date;
$current .= "-";
$current .= $time;
$current .= "\t";
$current .= $unixtime;
$current .= "\t";

$temp = $_POST['temperature'];

$temp2 = implode("",$_POST['temperature']);

$current .=  $temp2;
$current .= "\r\n";

// Write the contents back to the file
file_put_contents($file, $current);

// a:2:{s:9:"device_id";s:10:"B3D53A5348";s:11:"temperature";a:1:{s:18:"'282b91240700002e'";s:5:"15.43";}}

?>

 

 

DATA file:
20161229-00:00:21    1482962421    22.75
20161229-00:00:56    1482962456    22.75
20161229-00:01:30    1482962490    22.75
20161229-00:02:04    1482962524    22.75
20161229-00:02:38    1482962558    22.75
20161229-00:03:12    1482962592    22.75
20161229-00:03:46    1482962626    22.75
20161229-00:04:20    1482962660    22.75
20161229-00:04:54    1482962694    22.75
20161229-00:05:28    1482962728    22.81
20161229-00:06:02    1482962762    22.81
...
...
...
...
...

 

 

 

 Domoticz lua script to convert XML output from KMTronic

DS1820 LAN module

 

 



KMtronic LAN DS18B20 Temperature Monitor

 

 

LAN DS18B20 High-Precision 1-Wire Digital Temperature Monitor

 

 

 

 

 ------------------------------------------------------------------------------
--
--
-- Domoticz lua script to convert XML output from KMTronic DS1820 LAN module
-- Reads the temperature based on the unique ID of the sensor and passes it
-- back to a virtual temperature sensor(s)
-- sensors in Domoticz
--
------------------------------------------------------------------------------
-- Rob Allen 12/04/2016
------------------------------------------------------------------------------

 

 Thank you Rob!

 

kmtronic domoticz ds1820 temperature

 

 

More information:   
http://www.domoticz.com/forum/viewtopic.php?t=6456#p83096

 

 

 

 

 

 

 

Tuesday, 21 March 2017 07:56

Control KMtronic WEB Relays by Arduino

Written by

 

 

 

 

 

/*
  Web client

 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13

 created 18 Dec 2009
 by David A. Mellis
 modified 9 Apr 2012
 by Tom Igoe, based on work by Adrian McEwen

 */

#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
// if you don't want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
IPAddress server(192,168,1,199);  // numeric IP for Google (no DNS)


// Set the static IP address to use if the DHCP fails to assign
IPAddress ip(192, 168, 1, 177);

// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  // start the Ethernet connection:
  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // try to congifure using IP address instead of DHCP:
    Ethernet.begin(mac, ip);
  }
  // give the Ethernet shield a second to initialize:
  delay(1000);
  Serial.println("connecting...");

  // if you get a connection, report back via serial:
  if (client.connect(server, 80)) {
    Serial.println("connected");
    // Make a HTTP request:
    client.println("GET /FF0101 HTTP/1.1");
    client.println("Host: 192.168.1.206");
    client.println("Authorization: Basic YWRtaW46YWRtaW4=");
    client.println("Connection: close");
    client.println();
  } else {
    // if you didn't get a connection to the server:
    Serial.println("connection failed");
  }
}

void loop() {
  // if there are incoming bytes available
  // from the server, read them and print them:
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

  // if the server's disconnected, stop the client:
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();

    // do nothing forevermore:
    while (true);
  }
}

 

 

 

Friday, 17 March 2017 12:55

Domoticz Home Automation System

Written by

 

 

 

 

Domoticz is a very light weight home automation system that lets you monitor and configure miscellaneous devices, including lights, switches, various sensors/meters like temperature, rainfall, wind, ultraviolet (UV) radiation, electricity usage/production, gas consumption, water consumption and many more. Notifications/alerts can be sent to any mobile device.

Free / Open Source
Linux / Windows / Embedded Devices



www.Domoticz.com

 

 

Supported by Domoticz

 


 

 

http://sigma-shop.com/userfiles/productlargeimages/product_423.jpg

LAN Ethernet IP 8 channels WEB Relay board

 

 


 

 

http://sigma-shop.com/userfiles/productlargeimages/product_318.jpg

RS485 8 channels Relay board

 


 

kmtronic domoticz ds1820 temperature

 

Domoticz lua script to convert XML output from KMTronic DS1820 LAN module

 

 info.kmtronic.com/domoticz-lua-script-to-convert-xml-output-from-kmtronic-ds1820-lan-module.html

 

 


 

 

Page 1 of 33