Skip to content

Instantly share code, notes, and snippets.

View Samywamy10's full-sized avatar

Sam Wright Samywamy10

  • Canva
  • Melbourne, Australia
View GitHub Profile
esphome:
name: circle-screen-3
friendly_name: Circle Screen 3
on_boot:
priority: 600
esp32:
board: esp32dev
framework:
type: esp-idf
# usage:
# packages:
# your_cee_base: !include your-cee-config.yaml
esphome:
on_boot:
then:
- light.turn_on:
id: back_light
brightness: "80%"
# usage:
# packages:
# living_room_controls: !include
# file: shared_living-room-controls.yaml
# vars:
# light_entity: light.living_kitchen_lights
# media_player_entity: media_player.living_room
# light_sensor_entity: sensor.living_room_presence_sensor_light_sensor_light_level_2
# temperature_entity: sensor.living_room_temperature_humidity_sensor_temperature
# ac_entity: climate.living_room_ac
lvgl:
touchscreens:
- my_touchscreen
disp_bg_color: 0x000000
pages:
- id: ac_page
bg_opa: 0
widgets:
- tileview:
id: tiles
@Samywamy10
Samywamy10 / motion_light.yml
Created August 3, 2023 04:27
Motion ligjt
blueprint:
name: Motion-activated Light
description: Turn on a light when motion is detected.
domain: automation
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
input:
motion_entity:
name: Motion Sensor
selector:
entity:
function isError(err: Error): err is Error {
return typeof err === 'object' && !!error && 'message' in err && 'name' in err;
}
struct FacilitiesView: CICView {
@StateObject var viewModel = FacilitiesViewModel()
@EnvironmentObject var userDetails: UserDetails
@State var showModal = false
@State var shownModal = 0
@Namespace private var facilitiesViewNamespace
var body: some View {
NavigationView {
steps:
- task: Cache@2
inputs:
key: 'pods | "$(Agent.OS)" | Podfile.lock | Podfile | MyApp.xcodeproj/project.pbxproj'
path: 'Pods'
cacheHitVar: 'PODS_CACHE_RESTORED'
- script: |
sudo gem install cocoapods-binary
xcode-select -print-path
# Uncomment the next line to define a global platform for your project
platform :ios, '14.0'
plugin 'cocoapods-binary'
target 'MyApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
all_binary!
set_custom_xcodebuild_options_for_prebuilt_frameworks "DEBUG_INFORMATION_FORMAT=dwarf"
enable_bitcode_for_prebuilt_frameworks!
platform :ios, '14.0'
plugin 'cocoapods-binary'
target 'MyApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
all_binary!
set_custom_xcodebuild_options_for_prebuilt_frameworks "DEBUG_INFORMATION_FORMAT=dwarf"
enable_bitcode_for_prebuilt_frameworks!