ESP8266 NodeMCU: KMtronic UART 8 Channel Relay Controller control

KMtronic UART 8 Channel Relay Controller control

 

KMtronic UART Relay Controller Eight Channel
KMtronic UART Relay Controller Eight Channel

 

ESP8266 NodeMCU: KMtronic UART 8 Channel Relay Controller control
ESP8266 NodeMCU: KMtronic UART 8 Channel Relay Controller control

 

 

void setup() {
 //Initialize serial and wait for port to open:
 Serial.begin(9600);

}


void loop() {

for(uint8_t i=1; i < 9; i++ ){
 KMtronic_Relay_ON(i);
 delay(50);
 }

for(uint8_t i=1; i < 9; i++ ){
 KMtronic_Relay_OFF(i);
 delay(50);
 }


 KMtronic_Relay_ON(1);
 delay(500);

KMtronic_Relay_OFF(1);
 delay(500);

KMtronic_Relay_ON(8);
 delay(500);

KMtronic_Relay_OFF(8);
 delay(500);
 
}

void KMtronic_Relay_ON(uint8_t number)
{
 Serial.write((uint8_t)0xFF);
 Serial.write((uint8_t)number);
 Serial.write((uint8_t)0x01);
}

void KMtronic_Relay_OFF(uint8_t number)
{
 Serial.write((uint8_t)0xFF);
 Serial.write((uint8_t)number);
 Serial.write((uint8_t)0x00);
}

 

 

 

AVSforum: Software for a DIY Home Automation based off of relays for my new home theater

 

Software for a DIY Home Automation based off of relays for my new home theater

KMtronic 24 channel RS485-over-USB controlled relay system

 

AVSforum: Software for a DIY Home Automation based off of relays for my new home theater KMtronic
AVSforum: Software for a DIY Home Automation based off of relays for my new home theater KMtronic
AVSforum: Software for a DIY Home Automation based off of relays for my new home theater
AVSforum: Software for a DIY Home Automation based off of relays for my new home theater

 

http://www.avsforum.com/forum/155-diy-speakers-subs/1457157-diy-home-automation.html

 

 

Control KMtronic USB relays using Command Prompt BIN files

 

 

Example file for COM Port 1 (COM1)

 

@echo off
cls
echo "--------------------------------------"
echo " KMtronic USB One Relay "
echo " example "
echo " "
echo " "
echo " "
echo " ON Command : 0xFF, 0x01, 0x01 "
echo " "
echo " OFF Command : 0xFF, 0x01, 0x00 "
echo " "
echo "--------------------------------------"


echo FF0100>off.txt

echo FF0101>on.txt


certutil -decodehex off.txt off.bin
certutil -decodehex on.txt on.bin


MODE COM1:9600,n,8,1
copy on.bin \\.\com1 /b
echo " Relay is ON"
copy off.bin \\.\com1 /b
echo " Relay is OFF"


del on.bin
del off.bin
del on.txt
del off.txt

 

Control KMtronic USB relays using Command Prompt BIN files
Control KMtronic USB relays using Command Prompt BIN files
Control KMtronic USB relays using Command Prompt BIN files
Control KMtronic USB relays using Command Prompt BIN files

 

How to monitor temperatures in your home: KMtronic temperature board

How to monitor temperatures in your home

New KMtronic temperature board mounted in Varna

 

Varna is the third largest city in Bulgaria and the largest city and seaside resort on the Bulgarian Black Sea Coast.

 

https://www.google.bg/maps/place/Varna/@43.2047556,27.8028249,11z/data=!3m1!4b1!4m5!3m4!1s0x40a4538baaf3d7a1:0x5727941c71a58b7c!8m2!3d43.2140504!4d27.9147333

 

 

How to monitor temperatures in your home New KMtronic temperature board mounted in Varna, Bulgaria
How to monitor temperatures in your home New KMtronic temperature board mounted in Varna, Bulgaria

 

How to monitor temperatures in your home New KMtronic temperature board mounted in Varna, Bulgaria
How to monitor temperatures in your home New KMtronic temperature board mounted in Varna, Bulgaria

 

 

Working Home Assistant configuration file for KMtronic ModBus Temperature Monitor

 

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

 

 

Home Assistant: KMtronic ModBus Temperature Monitor
Home Assistant: KMtronic ModBus Temperature Monitor

 

Working file for 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