Samsung Smartthings and Domoticz

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
Trigun
Posts: 390
Joined: Wednesday 30 November 2016 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Samsung Smartthings and Domoticz

Post by Trigun »

Hi Guys,

I have a new Samsung TV(QE55Q70R) which works with the Samsung smartthings app.
Nice solution but I already have a great system that has all my devices in it and works great, Domoticz :)

Can anyone tell me if there is a solution to connect my tv(perhaps via smartthings) to my Domoticz system?

I have searched the internet but all solutions seem te be outdated or not applicable to my tv.

many thanks in advance!
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Samsung Smartthings and Domoticz

Post by FireWizard »

Hi,

Have you seen this: https://www.pakstech.com/blog/control-tv-node-red/

For Node Red, more than one node is available and with MQTT you can connect NR to Domoticz.

Regards
Trigun
Posts: 390
Joined: Wednesday 30 November 2016 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Samsung Smartthings and Domoticz

Post by Trigun »

WOW!! this definitely looks promising!

What the end goal is, is to create a scene in Domotics called "Movie Time" therefore I need to be able to turn the TV on but also start the Plex app. or select the right source.

would this be a possibility with Node-red?

many thanks!
mark.sellwood
Posts: 102
Joined: Tuesday 04 March 2014 10:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Surrey, UK
Contact:

Re: Samsung Smartthings and Domoticz

Post by mark.sellwood »

Can you turn your TV on with the SmartThings App? I have a 2 year old TV that only responds to SmartThings once you have turned it on with the remote.
3 x Pi, 1 Master, 2 Slaves, 1x Aeotec Z-Stick S2, 4xSP103 PIR, 5xPowerNode 1, 1xSmart Energy Switch Gen5, 4xFGSS101 Smoke Sensor, 2xFGD212, 9xFGS212 , 7xFGS221/2, 1xAD142 , 1xTKB TZ68E , 2xAeotec Multi Sensor, 3 x NodOn CRC-3-1-00.
Trigun
Posts: 390
Joined: Wednesday 30 November 2016 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Samsung Smartthings and Domoticz

Post by Trigun »

mark.sellwood wrote: Wednesday 05 February 2020 12:01 Can you turn your TV on with the SmartThings App? I have a 2 year old TV that only responds to SmartThings once you have turned it on with the remote.
Yes I can turn it on and off with the app
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Samsung Smartthings and Domoticz

Post by FireWizard »

Hi,

@Trigun.

You can try to connect Node Red with Plex.
A node exists: https://flows.nodered.org/node/node-red-contrib-plex-ws

Regards
Trigun
Posts: 390
Joined: Wednesday 30 November 2016 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Samsung Smartthings and Domoticz

Post by Trigun »

FireWizard wrote: Wednesday 05 February 2020 13:41 Regards
Ok, thnx! The intention was to actually launch the app from the tv.

but thnx anyway!
Trigun
Posts: 390
Joined: Wednesday 30 November 2016 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Samsung Smartthings and Domoticz

Post by Trigun »

ok, I had a look at node red. I must say that I have no experience with nodered at all.
it does seem like a good solution when using MQTT but I have no idea where to start. even the internet tells me different things to do.

is there anyone experienced with nodered to help me on my way?

thnx!
User avatar
pgielen
Posts: 91
Joined: Monday 18 February 2019 14:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Boxmeer
Contact:

Re: Samsung Smartthings and Domoticz

Post by pgielen »

https://robothuis.nl/2020/11/02/koppel- ... -domoticz/

The original is in Dutch but there is a Google translate button in the menu.
https://robothuis.nl, RPi4B, RFXCOM XL, Aeotec Z-Stick, ESP Easy, Weatherstation, several switches and sensors, Ikea Trädfri, Philips Hue, Foscam, Reolink, Lyric T6, Ring
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Samsung Smartthings and Domoticz

Post by PatrickSt91 »

I'm using this library: https://github.com/PatrickSt1991/pysmartthings

It's a fork of the original: https://github.com/andrewsayre/pysmartthings

With that I made python script and connected it to a domoticz virtual switch.

My script turns on the TV if it's off, when it's on changes the source to HDMI2 to start my PS4.

You could use that library to do the same for you.

If you need any help let me know
djalexnl
Posts: 18
Joined: Sunday 12 August 2018 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Samsung Smartthings and Domoticz

Post by djalexnl »

Can you share some simple python examples here so we can learn from it?
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Samsung Smartthings and Domoticz

Post by tontze »

Is mqtt only way to connect node-red and domoticz ?
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Samsung Smartthings and Domoticz

Post by waaren »

tontze wrote: Sunday 21 February 2021 10:24 Is mqtt only way to connect node-red and domoticz ?
No. You can also send HTTP Requests (GET and POST)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Samsung Smartthings and Domoticz

Post by tontze »

waaren wrote: Sunday 21 February 2021 13:17
tontze wrote: Sunday 21 February 2021 10:24 Is mqtt only way to connect node-red and domoticz ?
No. You can also send HTTP Requests (GET and POST)
Figured, but isnt this problematic with device states ? IE. you need to poll device states time to time to keep them synced in domoticz ?
Last edited by tontze on Monday 22 February 2021 7:16, edited 1 time in total.
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Samsung Smartthings and Domoticz

Post by PatrickSt91 »

djalexnl wrote: Sunday 14 February 2021 12:35 Can you share some simple python examples here so we can learn from it?
Sure, sorry for the late reply.

Code: Select all

#!/usr/bin/env python2

# https://github.com/andrewsayre/pysmartthings
# for ps4 only -> result = await device.set_input_source("HDMI")

import aiohttp
import asyncio
import pysmartthings
import sys

tokenSmartThings = '**************************************'

async def print_devices():
    async with aiohttp.ClientSession() as session:
        api = pysmartthings.SmartThings(session, tokenSmartThings)
        devices = await api.devices() // Calling all devices currently in your smartthins app.
	#print(devices)
        device = devices[0]  // device[0] is the device I need, in your case it can be anything.. just check print(devices)
        #print(device.capabilities)
        result = await device.switch_on() //Turn On TV
        assert result == True
        await device.status.refresh()  //Refresh TV, I'm not sure why I do this but it works
        result = await device.set_input_source("HDMI2") //Change to HDMI2
        assert result == True
        
def main():
    loop = asyncio.get_event_loop()
    loop.run_until_complete(print_devices())
    loop.close()

if __name__ == '__main__':
    main()
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest