Created
July 13, 2023 09:01
-
-
Save jforge/6d5c662a2ef4c984d7b2cb99ef493ab3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description: > | |
MQTT demonstrator for Shellies and Tinkerforge components | |
metadata: | |
name: shelles and tinkerforge | |
provider: jforge | |
version: 1.0.0 | |
parameters: | |
host: | |
type: string | |
default: 192.168.178.75 | |
port: | |
type: integer | |
default: 1883 | |
shellyId_PlugS_01_Tinkershack: | |
type: string | |
default: shellyplug-s-DE2AA0 | |
shellyId_Lightbulb_01_Kitchen: | |
type: string | |
default: shellycolorbulb-3494546B5A76 | |
resources: | |
mqttConnection: | |
type: Cybus::Connection | |
properties: | |
protocol: Mqtt | |
connection: | |
scheme: mqtt | |
host: !ref host | |
port: !ref port | |
# -- Shellies ---------------------------------------------------------------- | |
readEndpointShelly_01_ts_plug_temperature: | |
type: Cybus::Endpoint | |
properties: | |
protocol: Mqtt | |
connection: !ref mqttConnection | |
subscribe: | |
topic: !sub "shellies/${shellyId_PlugS_01_Tinkershack}/temperature" | |
readEndpointShelly_01_ts_plug_power: | |
type: Cybus::Endpoint | |
properties: | |
protocol: Mqtt | |
connection: !ref mqttConnection | |
subscribe: | |
topic: !sub "shellies/${shellyId_PlugS_01_Tinkershack}/relay/0/power" | |
readEndpointShelly_01_kitchen_bulb_status: | |
type: Cybus::Endpoint | |
properties: | |
protocol: Mqtt | |
connection: !ref mqttConnection | |
subscribe: | |
topic: !sub "shellies/${shellyId_Lightbulb_01_Kitchen}/color/0/status" | |
readEndpointShelly_01_kitchen_bulb_power: | |
type: Cybus::Endpoint | |
properties: | |
protocol: Mqtt | |
connection: !ref mqttConnection | |
subscribe: | |
topic: !sub "shellies/${shellyId_Lightbulb_01_Kitchen}/light/0/power" | |
# -- Tinkerforge ---------------------------------------------------------------- | |
readEndpointTinkerforgeOutdoorWeatherBricklet: | |
type: Cybus::Endpoint | |
properties: | |
protocol: Mqtt | |
connection: !ref mqttConnection | |
subscribe: | |
topic: 'tinkerforge/outdoor/weather' | |
readEndpointTinkerforgeTinkershackAirQualityViaEsp32: | |
type: Cybus::Endpoint | |
properties: | |
protocol: Mqtt | |
connection: !ref mqttConnection | |
subscribe: | |
topic: 'tinkerforge/tinkershack/airquality' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment