Skip to content

Instantly share code, notes, and snippets.

View kreynolds's full-sized avatar

Kelley Reynolds kreynolds

View GitHub Profile
@kreynolds
kreynolds / b0-modes-debug.log
Created July 27, 2026 15:10
midea_ac_lan / midealocal debug log - Toshiba ML-EM34P(SS) B0 microwave, 9 panel-driven cycles (manual, weight defrost, time defrost, popcorn x2, potato x2, sensor reheat)
2026-07-27 08:21:13.118 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration midea_ac_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2026-07-27 10:08:33.014 DEBUG (Microwave Oven) [midealocal.device] [29686813967144] refresh_status with cmds: [<midealocal.devices.b0.message.MessageQuery00 object at 0x7f605b95c0>, <midealocal.devices.b0.message.MessageQuery01 object at 0x7f5ff9ec10>, <midealocal.devices.b0.message.MessageQuery31 object at 0x7f5ff9f230>], check_protocol False, device Microwave Oven, type 176, model 0EM34A2E, subtype 2, device_protocol: 3, message_protocol 1, unsupported_protocol: []
2026-07-27 10:08:33.014 DEBUG (Microwave Oven) [midealocal.device] [29686813967144] Sending: {'_device_type': <DeviceType.B0: 176>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 1, 'header': 'aa0bb0
@kreynolds
kreynolds / gist:a129f5bcb84a8cf21d79
Last active August 29, 2015 14:25
ActiveSupport/Rails Stripe Instrumentation
# Define some unobtrusive instrumentation
module Stripe
module Instrumentation
module Collection
def all(*args)
ActiveSupport::Notifications.instrument("stripe.#{collection_type}.list") { super }
end
def create(*args)
ActiveSupport::Notifications.instrument("stripe.#{collection_type}.create") { super }