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
blueprint: | |
name: Zigbee2MQTT - Tuya 1-Button Scene Switch | |
description: Automate your Tuya 1-Button Scene Switch via Zigbee2MQTT. | |
domain: automation | |
input: | |
switch: | |
name: Tuya 1-Button Scene Switch | |
description: Tuya 1-Button Scene Switch to use | |
selector: | |
entity: |
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
const exposes = require('zigbee-herdsman-converters/lib/exposes'); | |
const tuya = require('zigbee-herdsman-converters/lib/tuya'); | |
const e = exposes.presets; | |
const ea = exposes.access; | |
const definitions = [ | |
{ | |
fingerprint: [ | |
{modelID: 'TS0601', manufacturerName: '_TZE200_7eue9vhc'}, | |
{modelID: 'TS0601', manufacturerName: '_TZE200_bv1jcqqu'}, |
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
dasdasd |
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
FROM ruby:2.4.0 | |
ENV APP_HOME /app | |
ENV HOME /root | |
RUN mkdir $APP_HOME | |
WORKDIR $APP_HOME | |
COPY Gemfile* $APP_HOME/ | |
RUN bundle install |
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
module InteractionExampleGroup | |
extend ActiveSupport::Concern | |
included do | |
let(:inputs) { {} } | |
let(:outcome) { described_class.run(inputs) } | |
let(:result) { outcome.result } | |
end | |
RSpec.configure do |config| |
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
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |